Table of Contents

Class DMConnection

Namespace
Dynamicweb.DataManagement
Assembly
Dynamicweb.DataManagement.dll

Represents DataManagement connection

[Serializable]
public abstract class DMConnection : DbObject, ICloneable
Inheritance
DMConnection
Implements
Derived
Inherited Members

Constructors

DMConnection()

Default constructor

protected DMConnection()

Properties

DBName

For some legacy code.

public abstract string DBName { get; }

Property Value

string

DW

Dynamicweb mark

public bool DW { get; set; }

Property Value

bool

Data

Data interface for this connection.

public DMConnectionData Data { get; }

Property Value

DMConnectionData

DMConnectionData class

Meta

Metainformation for this connection.

public DMConnectionMeta Meta { get; }

Property Value

DMConnectionMeta

DMConnectionMeta class

Name

Name

public string Name { get; set; }

Property Value

string

Name in string format

Type

Type

public int Type { get; set; }

Property Value

int

integer value of type code

Methods

Clone()

public abstract object Clone()

Returns

object

Fill(IDataReader)

Fill fields: ID, Name, DW

public override void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader

FillRow(DataRow)

Fill fields: ID, Name, DW

protected override void FillRow(DataRow row)

Parameters

row DataRow

GetConnection(int)

Gets connection by identifier

public static DMConnection GetConnection(int ID)

Parameters

ID int

Identifier

Returns

DMConnection

DataManagement connection instance

GetConnection(int, string)

Gets connection by ID and database name

public static DMConnection GetConnection(int ID, string DBName)

Parameters

ID int

Identifier

DBName string

Database name

Returns

DMConnection

GetConnections()

Gets all DataManagement module connections

public static DMConnectionCollection GetConnections()

Returns

DMConnectionCollection

GetConnectionsBySql(string)

Gets DataManager connections useng sql command text

public static DMConnectionCollection GetConnectionsBySql(string sqlCommandText)

Parameters

sqlCommandText string

sql command text

Returns

DMConnectionCollection

Datamanagement codule connections

GetData()

protected abstract DMConnectionData GetData()

Returns

DMConnectionData

GetMeta()

protected abstract DMConnectionMeta GetMeta()

Returns

DMConnectionMeta
To top