com.huiyou.Model/Tables/TableFieldAttribute.cs

(完整代码) 834B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.huiyou.Model.Tables
{
    public class TableFieldAttribute : Attribute
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="fieldName">数据库字段名</param>
        /// <param name="isKey">是否主键</param>
        /// <param name="autoGenerate">是否数据库自动生成</param>
        public TableFieldAttribute(string fieldName, bool isKey = false, bool autoGenerate = false)
        {
            FieldName = fieldName;
            IsKey = isKey;
            AutoGenerate = autoGenerate;
        }

        public string FieldName { get; set; }
        public bool IsKey { get; set; }
        public bool AutoGenerate { get; set; }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。