Class DbMetaTable
Represents metadata for a database table, including its structural components and schema relationships.
public class DbMetaTable : DbMetaObject
- Inheritance
-
DbMetaTable
- Inherited Members
- Extension Methods
Properties
Columns
Gets the collection of schema column metadata objects defined for the table.
public List<DbMetaColumn> Columns { get; }
Property Value
Constraints
Gets the collection of general schema constraint metadata objects defined for the table.
public List<DbMetaConstraint> Constraints { get; }
Property Value
ForeignKeys
Gets the collection of foreign key constraint metadata objects defined for the table.
public List<DbMetaForeignKey> ForeignKeys { get; }
Property Value
Indexes
Gets the collection of index metadata objects defined for the table optimization.
public List<DbMetaIndex> Indexes { get; }
Property Value
Triggers
Gets the collection of schema trigger metadata objects associated with the table events.
public List<DbMetaTrigger> Triggers { get; }
Property Value
Methods
GetCreateTable()
Generates a basic SQL DDL script statement for creating the table schema.
public string GetCreateTable()
Returns
GetFieldNameList()
Generates a comma-separated string list of all column names in the table, separated by newlines.
public string GetFieldNameList()