ChouBox/Utile/HuanMeng.DotNetCore/AttributeExtend/ImagesAttribute.cs
2025-04-23 19:20:23 +08:00

27 lines
600 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HuanMeng.DotNetCore.AttributeExtend;
/// <summary>
///
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class ImagesAttribute : Attribute
{
public string FieldName { get; set; }
/// <summary>
///
/// </summary>
/// <param name="fieldName">生成字段名称</param>
// 构造函数,用于传递参数
public ImagesAttribute(string fieldName = "")
{
this.FieldName = fieldName;
}
}