protected FetcherNavigationProperty(OdcmProperty odcmProperty) : base(odcmProperty) { FieldName = NamesService.GetFetcherFieldName(odcmProperty); InstanceType = NamesService.GetFetcherTypeName(odcmProperty.Type); PrivateSet = true; Type = new Type(NamesService.GetFetcherInterfaceName(odcmProperty.Type)); }
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)) }); }