namespace XFEExtension.NetCore.AutoConfig; /// /// 将属性添加至储存列表 /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] public class ProfilePropertyAttribute : Attribute { /// /// 自动生成的属性名称 /// public string PropertyName { get; set; } = string.Empty; /// /// 将属性添加至存储列表 /// public ProfilePropertyAttribute() { } /// /// 将属性添加至存储列表,给定属性名 /// /// 属性名 public ProfilePropertyAttribute(string propertyName) { PropertyName = propertyName; } }