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
DW
Dynamicweb mark
public bool DW { get; set; }
Property Value
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
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
intIdentifier
Returns
- DMConnection
DataManagement connection instance
GetConnection(int, string)
Gets connection by ID and database name
public static DMConnection GetConnection(int ID, string DBName)
Parameters
Returns
GetConnections()
Gets all DataManagement module connections
public static DMConnectionCollection GetConnections()
Returns
GetConnectionsBySql(string)
Gets DataManager connections useng sql command text
public static DMConnectionCollection GetConnectionsBySql(string sqlCommandText)
Parameters
sqlCommandText
stringsql command text
Returns
- DMConnectionCollection
Datamanagement codule connections
GetData()
protected abstract DMConnectionData GetData()
Returns
GetMeta()
protected abstract DMConnectionMeta GetMeta()