| AbstractTableManager Class |
Namespace: CMS.DataEngine
public abstract class AbstractTableManager : ITableManager
The AbstractTableManager type exposes the following members.
| Name | Description | |
|---|---|---|
| AbstractTableManager |
| Name | Description | |
|---|---|---|
| mDatabaseCulture |
Database culture setting from the web.config.
|
| Name | Description | |
|---|---|---|
| ConnectionString |
Connection string to use for table management
| |
| DatabaseCulture |
Database culture setting from the web.config.
| |
| DatabaseName |
Database name.
| |
| DatabaseServerName |
Name of database server.
| |
| DatabaseServerVersion |
Version of database server.
| |
| DatabaseSize |
Database size(including log size) in MB.
| |
| DatabaseVersion |
Database version
| |
| DisableDebug |
If true, the debug is disabled in this table manager
|
| Name | Description | |
|---|---|---|
| AddTableColumn |
Add column to specified table.
| |
| AlterProcedure |
Alters specified procedure in database
| |
| AlterTableColumn |
Alter table column with default value.
| |
| AlterView |
Alters specified view in database
| |
| ChangeDBObjectOwner |
Changes database object owner.
| |
| ColumnExistsInView |
Checks if column name is unique in given view.
| |
| CreateColumnIndexes |
Creates the table indexes.
| |
| CreateProcedure |
Creates specified procedure in database
| |
| CreateTable(String, String) |
Creates specified table in database.
| |
| CreateTable(String, String, Boolean) |
Creates specified table in database.
| |
| CreateTransactionScope |
Returns a transaction scope that can be used to maintain database consistency.
| |
| CreateView |
Creates specified view in database
| |
| DeleteDataFromTable |
Deletes data from specified table.
| |
| DeleteObject |
Removes view or stored procedure from database.
| |
| DropColumnIndexes |
Drops the column indexes, returns the DataSet of indexes.
| |
| DropDefaultConstraint |
Drops the default constraint.
| |
| DropTable |
Drop specified table from database.
| |
| DropTableColumn |
Remove column from specified table.
| |
| DropView |
Drop specified view from database. Returns the schema of the dropped view
| |
| EnsureDefaultValue |
Add apostrophes around the column default value string according to column type.
| |
| ExecuteQuery |
Executes query and returns the results in a DataSet.
| |
| ExecuteScalar |
Executes query and returns the results in a DataSet.
| |
| GetCode |
Returns SQL code of specified view or stored procedure.
| |
| GetColumnIndexes |
Returns the DataSet of column indexes.
| |
| GetColumnInformation |
Returns DataSet with specified table column information retrieved from database information schema. Returns columns ColumnName, DataType, DataSize, DataPrecision, Nullable, DefaultValue.
| |
| GetConnection |
Gets the connection for the table management
| |
| GetConstraintName |
Returns constraint's name truncated to 128 chars (128 chars is limit of database column name).
| |
| GetDatabaseInfo |
Gets size related information about the database.
| |
| GetDatabaseSize |
Gets database size (including log size) or N/A string if the size cannot be retrieved
| |
| GetDatabaseVersion |
Gets the database version
| |
| GetIndexes |
Returns DataSet with indexes of the given object. Returns columns IndexName, DropScript, CreateScript
| |
| GetList |
Returns list of views or stored procedures.
| |
| GetPKConstraintName |
Returns the name of the primary key constraint.
| |
| GetPrimaryKeyColumns |
Returns list of column names which represent primary keys of the specified database table.
Returns empty list if primary keys are not found.
| |
| GetTableDependencies |
Gets list of object names which have foreign key constraint dependency.
| |
| GetTablePKName |
Returns name of the primary key. If more columns in PK, names are separated by semicolon ";".
| |
| GetTables |
Gets the tables in the current database
| |
| GetValueString |
Returns the value string using the database culture. Does not include apostrophes for types that need them
| |
| GetXmlSchema |
Returns XML schema for specified table.
| |
| RecreatePKConstraint |
Drops the current primary key constraint and creates new from given columns.
| |
| RefreshView |
Refreshes specified view in database.
| |
| RenameColumn |
Changes name of the column.
| |
| RenameTable |
Changes name of the table with original name according to the new name.
| |
| StoredProcedureExists |
Determines whether specified stored procedure exists or not.
| |
| TableExists |
Determines whether specified DB table exists or not.
| |
| ViewExists(String) |
Determines whether specified DB view exists or not.
| |
| ViewExists(String, String) |
Determines whether specified DB view exists or not.
|