Class DMConnectionFactory
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Factory class for creating DMConnection instances
public class DMConnectionFactory
- Inheritance
-
DMConnectionFactory
- Inherited Members
Fields
TypeAccess
public const int TypeAccess = 0
Field Value
TypeCrm4
public const int TypeCrm4 = 2
Field Value
TypeMsSql
public const int TypeMsSql = 1
Field Value
Methods
CanCreate(int)
Shows if the current factory object is configured to create specified connection
public static bool CanCreate(int connectionType)
Parameters
connectionType
intType of connection
Returns
- bool
True if fsctory configured for creating defined connection type
CreateConnection(int)
Creates connection object
public static DMConnection CreateConnection(int connectionType)
Parameters
connectionType
intType of connection
Returns
- DMConnection
DMConnection object
GetAvaliableTypes()
Gets list of available connection types
public static List<int> GetAvaliableTypes()
Returns
GetAvaliableTypesCommaSeparated()
Gets list of available connection types as coma separated string
public static string GetAvaliableTypesCommaSeparated()
Returns
- string
Coma separated string of connection type IDs