Class MsSqlConnectionMeta
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Represents MsSqlConnection meta info
public class MsSqlConnectionMeta : DMConnectionMeta
- Inheritance
-
MsSqlConnectionMeta
- Inherited Members
Constructors
MsSqlConnectionMeta(MsSqlConnection)
Initializes a new instance of the MsSqlConnectionMeta class.
public MsSqlConnectionMeta(MsSqlConnection connection)
Parameters
connection
MsSqlConnectionThe MsSqlConnection object.
Methods
AddFieldsToTable(string, FieldCollection)
Adds fields to a table.
public override bool AddFieldsToTable(string tableName, FieldCollection fields)
Parameters
tableName
stringThe name of the table.
fields
FieldCollectionThe collection of fields.
Returns
- bool
True if the fields were successfully added; otherwise, false.
CreateTable(string, FieldCollection)
Creates a table.
public override bool CreateTable(string name, FieldCollection fields)
Parameters
name
stringThe name of the table.
fields
FieldCollectionThe collection of fields.
Returns
- bool
True if the operation succeeded; otherwise, false.
GetTableFields(string)
Gets the fields of a table.
public override FieldCollection GetTableFields(string tableName)
Parameters
tableName
stringThe name of the table.
Returns
- FieldCollection
The collection of fields.
GetTables()
Returns collection of all tables using information schema data
protected override TableCollection GetTables()
Returns
- TableCollection
Collection of tables