Exemplo n.º 1
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))
     });
 }
Exemplo n.º 2
0
 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)
     });
 }
Exemplo n.º 3
0
 public static NavigationProperty AsContainerNavigationProperty(OdcmProperty odcmProperty)
 {
     return(odcmProperty.IsCollection()
         ? (NavigationProperty)ContainerNavigationCollectionProperty.ForService(odcmProperty)
         : ContainerNavigationProperty.ForService(odcmProperty));
 }
Exemplo n.º 4
0
 public static FetcherNavigationProperty AsIFetcherNavigationPropertyForFetcher(OdcmProperty odcmProperty)
 {
     return(odcmProperty.IsCollection()
         ? FetcherNavigationCollectionProperty.ForFetcher(odcmProperty)
         : FetcherNavigationProperty.ForFetcher(odcmProperty));
 }
Exemplo n.º 5
0
 public static StructuralProperty AsConcreteStructuralProperty(OdcmProperty odcmProperty)
 {
     return(odcmProperty.IsCollection()
         ? StructuralCollectionProperty.ForConcrete(odcmProperty)
         : StructuralProperty.ForConcrete(odcmProperty));
 }
Exemplo n.º 6
0
 public static ConcreteNavigationAccessorProperty AsNavigationAccessorProperty(OdcmProperty odcmProperty)
 {
     return(odcmProperty.IsCollection()
         ? ConcreteNavigationCollectionAccessorProperty.ForConcrete(odcmProperty)
         : ConcreteNavigationAccessorProperty.ForConcrete(odcmProperty));
 }