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