コード例 #1
0
ファイル: SourceCodeGenerator.cs プロジェクト: vikyding/Vipr
        private void Write(ConcreteNavigationCollectionProperty property)
        {
            WriteDeclaration(property);

            using (_builder.IndentBraced)
            {
                _("get");

                using (_builder.IndentBraced)
                {
                    _("return {0}.Cast<{1}>().ToList();", property.Name, NamesService.GetConcreteInterfaceName(property.OdcmType));
                }
            }
        }
コード例 #2
0
 public static NavigationProperty AsConcreteNavigationProperty(OdcmProperty odcmProperty)
 {
     return(odcmProperty.IsCollection
         ? ConcreteNavigationCollectionProperty.ForConcrete(odcmProperty)
         : ConcreteNavigationProperty.ForConcrete(odcmProperty));
 }