Class bpxTable
- Namespace
- PolarDataInterop.Catalog
- Assembly
- PolarDataInterop.dll
This class contains the details of a table in the catalog.
public class bpxTable
- Inheritance
-
bpxTable
- Inherited Members
- Extension Methods
Fields
Fields
Returns the collection of fields in this table.
public Collection<bpxField> Fields
Field Value
Properties
Catalog
Returns the catalog that holds this table.
public bpxCatalog Catalog { get; }
Property Value
Description
Returns the description for this table as found in the extended properties.
public string Description { get; }
Property Value
ForeignKeys
Returns a collection of foreign keys in this table.
public Collection<bpxForeignKey> ForeignKeys { get; }
Property Value
Indexes
Returns the indexes found for this table.
public Collection<bpxIndex> Indexes { get; }
Property Value
Name
Returns the name
public string Name { get; }
Property Value
NameInDatabase
Returns the name in the database.
public string NameInDatabase { get; }
Property Value
PrimaryKeyFields
Returns the fields in the primary key of this table.
public Collection<bpxField> PrimaryKeyFields { get; }
Property Value
PrimaryKeyIndex
Returns the index on the primary key in this table.
public bpxIndex PrimaryKeyIndex { get; }
Property Value
TableType
Returns the type of table. Like 'BASE_TABLE', 'VIEW'
public string TableType { get; }
Property Value
UnderlyingQuery
Returns the underlying query for this table in case of a VIEW.
public string UnderlyingQuery { get; }
Property Value
Methods
CreateDataSQL(clsString, string)
This method exports SQL statements to import the data in this table in another database.
public string CreateDataSQL(clsString pResultString = null, string pAdditionalWhere = "")
Parameters
pResultString
clsStringThe clsString object that will hold the SQL statements.
pAdditionalWhere
stringAn additional where to filter the data to export.
Returns
- string
The insert-statements to import the data.
CreateTableSQL(bool, bool, bool, clsString)
This method creates the SQL statements to create the table, relationships and indexes in the database.
public string CreateTableSQL(bool pCreateFieldsSQL = true, bool pCreateRelationshipsSQL = false, bool pCreateIndexesSQL = false, clsString pResultString = null)
Parameters
pCreateFieldsSQL
boolPass as True to include the base 'CREATE TABLE' or 'CREATE VIEW' statement in the result.
pCreateRelationshipsSQL
boolPass as True to create the SQL for all relationships (foreign keys).
pCreateIndexesSQL
boolPass as True to create the SQL for all indexes in this table.
pResultString
clsStringThe clsString object that will hold the SQL statements.
Returns
- string
The SQL to create this table.
ToString(clsString)
public void ToString(clsString pResult)
Parameters
pResult
clsString