Table of Contents

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

int

TypeCrm4

public const int TypeCrm4 = 2

Field Value

int

TypeMsSql

public const int TypeMsSql = 1

Field Value

int

Methods

CanCreate(int)

Shows if the current factory object is configured to create specified connection

public static bool CanCreate(int connectionType)

Parameters

connectionType int

Type 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 int

Type of connection

Returns

DMConnection

DMConnection object

GetAvaliableTypes()

Gets list of available connection types

public static List<int> GetAvaliableTypes()

Returns

List<int>

List of connection type IDs

GetAvaliableTypesCommaSeparated()

Gets list of available connection types as coma separated string

public static string GetAvaliableTypesCommaSeparated()

Returns

string

Coma separated string of connection type IDs

To top