/********************************************************************************
** auth： 陈辉
** date： 2018年10月15日星期一 09:56:13
** desc： 尚未编写描述
*********************************************************************************/

using System;
using System.Data;

namespace SouthSmart.GISService.Attribute
{
    /// <summary>
    /// 自定义特性 属性或者类可用  支持继承
    /// </summary>
    [AttributeUsage ( AttributeTargets.Property | AttributeTargets.Class, Inherited = true )]
    public class EnitityMappingAttribute : System.Attribute
    {
        private string tableName;
        /// <summary>
        /// 实体实际对应的表名
        /// </summary>
        public string TableName
        {
            get { return tableName; }
            set { tableName = value; }
        }

        private string columnName;
        /// <summary>
        /// 中文列名
        /// </summary>
        public string ColumnName
        {
            get { return columnName; }
            set { columnName = value; }
        }
        private DbType columnType;
        /// <summary>
        /// 中文列名
        /// </summary>
        public DbType ColumnType
        {
            get { return columnType; }
            set { columnType = value; }
        }
        private string columnSize;
        /// <summary>
        /// 中文列名
        /// </summary>
        public string ColumnSize
        {
            get { return columnSize; }
            set { columnSize = value; }
        }
        private string columnScale;
        /// <summary>
        /// 精度
        /// </summary>
        public string ColumnScale
        {
            get { return columnScale; }
            set { columnScale = value; }
        }

    }
}
