Class DbColumnInfo
Inheritance
System.Object
DbColumnInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FreeSql.DatabaseModel
Assembly: FreeSql.dll
Syntax
public class DbColumnInfo
Properties
| Improve this Doc View SourceComent
备注,早期编码时少按了一个字母,请使用 Comment
Declaration
[Obsolete("早期编码时少按了一个字母,请使用 Comment")]
public string Coment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Comment
备注
Declaration
public string Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CsType
映射到 C# 类型
Declaration
public Type CsType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Type |
DbType
数据库枚举类型int值
Declaration
public int DbType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
DbTypeText
数据库类型,字符串,varchar
Declaration
public string DbTypeText { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
DbTypeTextFull
数据库类型,字符串,varchar(255)
Declaration
public string DbTypeTextFull { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
DefaultValue
数据库默认值
Declaration
public string DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IsIdentity
自增标识
Declaration
public bool IsIdentity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsNullable
是否可DBNull
Declaration
public bool IsNullable { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsPrimary
主键
Declaration
public bool IsPrimary { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MaxLength
最大长度
Declaration
public int MaxLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Name
列名
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Position
字段位置
Declaration
public int Position { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Table
所属表
Declaration
public DbTableInfo Table { get; set; }
Property Value
| Type | Description |
|---|---|
| DbTableInfo |