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); }
protected StructuralProperty(OdcmProperty odcmProperty) : base(odcmProperty) { FieldName = NamesService.GetPropertyFieldName(odcmProperty); ModelName = NamesService.GetModelPropertyName(odcmProperty); Type = TypeService.GetPropertyType(odcmProperty); }
private static IEnumerable <Property> GetObsoletedNavigationProperties(OdcmClass odcmClass) { return(odcmClass.NavigationProperties().Where(p => NamesService.GetPropertyName(p) != NamesService.GetModelPropertyName(p)) .Select(Property.AsObsoletedNavigationProperty)); }