Class TableDescriptor
Provides the means to describe a database table.
Inheritance
System.Object
TableDescriptor
Implements
Namespace: Paradigm.ORM.Data.Descriptors
Assembly: Paradigm.ORM.Data.dll
Syntax
public class TableDescriptor : object, ITableDescriptor
Constructors
| Improve this Doc View SourceTableDescriptor(ITable, List<IColumn>, List<IConstraint>)
Initializes a new instance of the TableTypeDescriptor class.
Declaration
public TableDescriptor(ITable table, List<IColumn> columns, List<IConstraint> constraints)
Parameters
Type | Name | Description |
---|---|---|
ITable | table | The table schema. |
List<IColumn> | columns | The columns schema. |
List<IConstraint> | constraints | The constraints schema. |
See Also
Properties
| Improve this Doc View SourceAllColumns
Gets a list of all the columns.
Declaration
public virtual List<IColumnDescriptor> AllColumns { get; }
Property Value
Type | Description |
---|---|
List<IColumnDescriptor> |
CatalogName
Gets the name of the database catalog.
Declaration
public virtual string CatalogName { get; }
Property Value
Type | Description |
---|---|
System.String |
IdentityColumn
Gets the identity column descriptor.
Declaration
public virtual IColumnDescriptor IdentityColumn { get; }
Property Value
Type | Description |
---|---|
IColumnDescriptor |
PrimaryKeyColumns
Gets a list of column descriptors for all the primary keys.
Declaration
public virtual List<IColumnDescriptor> PrimaryKeyColumns { get; }
Property Value
Type | Description |
---|---|
List<IColumnDescriptor> |
SchemaName
Gets the name of the database schema.
Declaration
public virtual string SchemaName { get; }
Property Value
Type | Description |
---|---|
System.String |
SimpleColumns
Gets a list of column descriptors for all the simple columns.
Declaration
public virtual List<IColumnDescriptor> SimpleColumns { get; }
Property Value
Type | Description |
---|---|
List<IColumnDescriptor> |
Remarks
Simple columns does not include the identity columns but will contain the primary keys.
TableName
Gets the name of the table.
Declaration
public virtual string TableName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |