/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public virtual void AddProperties() { foreach (var property in _entity.EntityType.GetProperties().OrderBy(p => p.Scaffolding().ColumnOrdinal)) { var propertyConfiguration = _entity.FindPropertyConfiguration(property); if (propertyConfiguration != null) { AddAttributes(propertyConfiguration.AttributeConfigurations); } _sb.AppendLine("public " + CSharpUtilities.GetTypeName(property.ClrType) + " " + property.Name + " { get; set; }"); } }
public virtual void AddProperties() { foreach (var property in ModelUtilities.OrderedProperties(_entity.EntityType)) { PropertyConfiguration propertyConfiguration = _entity.FindPropertyConfiguration(property); if (propertyConfiguration != null) { AddAttributes(propertyConfiguration.AttributeConfigurations); } _sb.AppendLine("public " + CSharpUtilities.GetTypeName(property.ClrType) + " " + property.Name + " { get; set; }"); } }