Esempio n. 1
0
 public ObsoletedProperty(OdcmProperty odcmProperty) : base(odcmProperty)
 {
     Type = odcmProperty.IsCollection
         ? new Type(new Identifier("global::System.Collections.Generic", "IList"),
                    TypeService.GetPropertyType(odcmProperty))
         : TypeService.GetPropertyType(odcmProperty);
     UpdatedName = Name;
     Name        = NamesService.GetModelPropertyName(odcmProperty);
 }
Esempio n. 2
0
 protected StructuralProperty(OdcmProperty odcmProperty) : base(odcmProperty)
 {
     FieldName = NamesService.GetPropertyFieldName(odcmProperty);
     ModelName = NamesService.GetModelPropertyName(odcmProperty);
     Type      = TypeService.GetPropertyType(odcmProperty);
 }
Esempio n. 3
0
 private static IEnumerable <Property> GetObsoletedNavigationProperties(OdcmClass odcmClass)
 {
     return(odcmClass.NavigationProperties().Where(p => NamesService.GetPropertyName(p) != NamesService.GetModelPropertyName(p))
            .Select(Property.AsObsoletedNavigationProperty));
 }