我希望设置一个ASP.NET核心应用程序,以便模型中的属性名称以某种方式自动“人性化”(例如,在属性名称中添加空格)。SystemSettings模型: public class SystemSettings : IEntityBase public int Id { get; set; }
[Display(Description = "Name of the organis
如何使用资源文件本地化类的DisplayName。Display属性不适用于类,DisplayName属性不支持本地化。[MetadataTypeAttribute(typeof(ServiceType.ServiceTypeMetadata))]
// Compile Error: Attribute 'DisplayIt is only valid on 'method, property, indexer, field, param'