Class DbTableInfo
Inheritance
System.Object
DbTableInfo
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 DbTableInfo
Properties
| Improve this Doc View SourceColumns
列
Declaration
public List<DbColumnInfo> Columns { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DbColumnInfo> |
Comment
表备注,SqlServer下是扩展属性 MS_Description
Declaration
public string Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Foreigns
Declaration
public List<DbForeignInfo> Foreigns { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DbForeignInfo> |
ForeignsDict
外键
Declaration
public Dictionary<string, DbForeignInfo> ForeignsDict { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, DbForeignInfo> |
Id
唯一标识
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Identitys
自增列
Declaration
public List<DbColumnInfo> Identitys { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DbColumnInfo> |
Indexes
Declaration
public List<DbIndexInfo> Indexes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DbIndexInfo> |
IndexesDict
索引/组合
Declaration
public Dictionary<string, DbIndexInfo> IndexesDict { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, DbIndexInfo> |
Name
表名
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Primarys
主键/组合
Declaration
public List<DbColumnInfo> Primarys { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DbColumnInfo> |
Schema
SqlServer下是Owner、PostgreSQL下是Schema、MySql下是数据库名
Declaration
public string Schema { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
表/视图
Declaration
public DbTableType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| DbTableType |
Uniques
Declaration
public List<DbIndexInfo> Uniques { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<DbIndexInfo> |
UniquesDict
唯一键/组合
Declaration
public Dictionary<string, DbIndexInfo> UniquesDict { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, DbIndexInfo> |