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)) }); }
public static Field ForStructuralProperty(OdcmProperty property) { return(new Field { Name = NamesService.GetPropertyFieldName(property), Type = property.IsCollection() ? new Type(NamesService.GetExtensionTypeName("NonEntityTypeCollectionImpl"), new Type(NamesService.GetConcreteTypeName(property.Type))) : TypeService.GetPropertyType(property) }); }
public static NavigationProperty AsContainerNavigationProperty(OdcmProperty odcmProperty) { return(odcmProperty.IsCollection() ? (NavigationProperty)ContainerNavigationCollectionProperty.ForService(odcmProperty) : ContainerNavigationProperty.ForService(odcmProperty)); }
public static FetcherNavigationProperty AsIFetcherNavigationPropertyForFetcher(OdcmProperty odcmProperty) { return(odcmProperty.IsCollection() ? FetcherNavigationCollectionProperty.ForFetcher(odcmProperty) : FetcherNavigationProperty.ForFetcher(odcmProperty)); }
public static StructuralProperty AsConcreteStructuralProperty(OdcmProperty odcmProperty) { return(odcmProperty.IsCollection() ? StructuralCollectionProperty.ForConcrete(odcmProperty) : StructuralProperty.ForConcrete(odcmProperty)); }
public static ConcreteNavigationAccessorProperty AsNavigationAccessorProperty(OdcmProperty odcmProperty) { return(odcmProperty.IsCollection() ? ConcreteNavigationCollectionAccessorProperty.ForConcrete(odcmProperty) : ConcreteNavigationAccessorProperty.ForConcrete(odcmProperty)); }