Table of Contents

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

TableCollection

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 string

table name

fields FieldCollection

fields 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 string

table name

fields FieldCollection

table 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 string

name

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 string

table 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

To top