namespace XFEExtension.NetCore.AutoPath; /// /// 自动检测并生成对应文件夹 /// [AttributeUsage(AttributeTargets.Field)] public sealed class AutoPathAttribute : Attribute { /// /// 生成的属性名称 /// public string? PropertyName { get; set; } /// /// 自动检测并生成对应文件夹 /// public AutoPathAttribute() { } /// /// 自动检测并生成对应文件夹 /// /// public AutoPathAttribute(string propertyName) { PropertyName = propertyName; } }