111
cjs
2025-06-06 03e67373c4c3bef21936ec1f9037f2ebcd434583
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/////////////////////////////////////////////////////////////////////////////
//    File Description    : 数据库一个字段的结构信息
//    Copyright           : joyin
// -------------------------------------------------------------------------
//    Date Created        : Mar 26, 2010
//    Author                : jiangxinjun
//
/////////////////////////////////////////////////////////////////////////////
 
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
 
namespace HH.AMS.Entitys.Common
{
    /// <summary>
    /// 数据库一个字段的结构信息
    /// </summary>
    public class DatabaseColumnStruct
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 字段类型
        /// </summary>
        public Type DbType { get; set; }
 
        /// <summary>
        /// 字段在数据库中的类型名称
        /// </summary>
        public string DbTypeName { get; set; }
 
        /// <summary>
        /// 字段大小
        /// </summary>
        public int Size { get; set; }
 
        /// <summary>
        /// 是否允许为空
        /// </summary>
        public bool AllowDBNull { get; set; }
 
        /// <summary>
        /// 是否为主键
        /// </summary>
        public bool IsIdentity { get; set; }
 
        /// <summary>
        /// 字段的序号
        /// </summary>
        public int ColumnIndex { get; set; }
    }
}