Skip to main content
A newer version of this page is available. .

DBTable Members

A table that stores a persistent object‘s data.

Constructors

Name Description
DBTable() Initializes a new instance of the DBTable class with default settings.
DBTable(String) Initializes a new instance of the DBTable class with the specified name.

Fields

Name Description
IsView This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Name Specifies the table’s name.
PrimaryKey Specifies a DBPrimaryKey object that represents a primary keys for the table. The primary key must be unique to identify the record in the table. It’s also possible to have a table with a primary key made up of two or more columns.

Properties

Name Description
Columns Provides access to the current DBTable‘s column collection.
ForeignKeys Provides access to the current DBTable‘s foreign keys collection.
Indexes Provides access to the current DBTable‘s indexes collection.

Methods

Name Description
AddColumn(DBColumn) Appends a column to the DBTable.Columns collection.
AddForeignKey(DBForeignKey) Appends a DBForeignKey object to the DBTable.ForeignKeys collection.
AddIndex(DBIndex) Appends a DBIndex object to the DBTable.Indexes collection.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the current object has the same settings as the specified object.
GetColumn(String) Creates a new column with the specified name and appends it to the DBTable.Columns collection.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current DBTable object.
GetType() Gets the Type of the current instance. Inherited from Object.
IsForeignKeyIncluded(DBForeignKey) Indicates whether the DBTable.ForeignKeys collection contains the specified DBForeignKey object.
IsIndexIncluded(DBIndex) Indicates whether the DBTable.Indexes collection contains the specified DBIndex object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString()
See Also