Class DMConnectionMeta
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Provides metainformation for connection.
[Serializable]
public abstract class DMConnectionMeta
- Inheritance
-
DMConnectionMeta
- Derived
- Inherited Members
Fields
_tables
protected TableCollection _tables
Field Value
Properties
Tables
Tables in this connection.
public TableCollection Tables { get; }
Property Value
- TableCollection
collection of tables
Remarks
result can be null for bad connection
Methods
AddFieldsToTable(string, FieldCollection)
Add new fields to table.
public abstract bool AddFieldsToTable(string tableName, FieldCollection fields)
Parameters
tableName
stringtable name
fields
FieldCollectionfields to add
Returns
- bool
true, if added
CreateTable(string, FieldCollection)
Create new table in connection
public abstract bool CreateTable(string name, FieldCollection fields)
Parameters
name
stringtable name
fields
FieldCollectiontable fields
Returns
- bool
true, if created
GetTable(string)
Get table information by table name. Can be overrided.
public virtual Table GetTable(string tableName)
Parameters
tableName
stringname
Returns
- Table
table information or null, if table is not found
GetTableFields(string)
Get list of table fields of this connection.
public abstract FieldCollection GetTableFields(string tableName)
Parameters
tableName
stringtable name
Returns
- FieldCollection
list of fields or null
GetTables()
Get list of tables of this connection.
protected abstract TableCollection GetTables()
Returns
- TableCollection
list of tables