コード例 #1
0
 protected FetcherNavigationProperty(OdcmProperty odcmProperty) : base(odcmProperty)
 {
     FieldName    = NamesService.GetFetcherFieldName(odcmProperty);
     InstanceType = NamesService.GetFetcherTypeName(odcmProperty.Type);
     PrivateSet   = true;
     Type         = new Type(NamesService.GetFetcherInterfaceName(odcmProperty.Type));
 }
コード例 #2
0
 public static Field ForNavigationFetcherProperty(OdcmProperty property)
 {
     return(new Field
     {
         Name = NamesService.GetFetcherFieldName(property),
         Type = property.IsCollection
              ? new Type(NamesService.GetCollectionTypeName((OdcmClass)property.Type))
              : new Type(NamesService.GetFetcherTypeName(property.Type))
     });
 }