Table of Contents

Class DB2Tools

Namespace
LinqToDB.DataProvider.DB2
Assembly
linq2db.dll
public static class DB2Tools
Inheritance
DB2Tools

Properties

AutoDetectProvider

public static bool AutoDetectProvider { get; set; }

Property Value

bool

DefaultBulkCopyType

Default bulk copy mode, used for DB2 by BulkCopy<T>(DataConnection, IEnumerable<T>) methods, if mode is not specified explicitly. Default value: MultipleRows.

[Obsolete("Use DB2Options.Default.BulkCopyType instead.")]
public static BulkCopyType DefaultBulkCopyType { get; set; }

Property Value

BulkCopyType

Methods

CreateDataConnection(DbConnection, DB2Version)

Creates DataConnection object using provided connection object.

public static DataConnection CreateDataConnection(DbConnection connection, DB2Version version = DB2Version.LUW)

Parameters

connection DbConnection

Connection instance.

version DB2Version

DB2 version.

Returns

DataConnection

DataConnection instance.

CreateDataConnection(DbTransaction, DB2Version)

Creates DataConnection object using provided transaction object.

public static DataConnection CreateDataConnection(DbTransaction transaction, DB2Version version = DB2Version.LUW)

Parameters

transaction DbTransaction

Transaction instance.

version DB2Version

DB2 version.

Returns

DataConnection

DataConnection instance.

CreateDataConnection(string, DB2Version)

Creates DataConnection object using provided DB2 connection string.

public static DataConnection CreateDataConnection(string connectionString, DB2Version version = DB2Version.LUW)

Parameters

connectionString string

Connection string.

version DB2Version

DB2 version.

Returns

DataConnection

DataConnection instance.

GetDataProvider(DB2Version)

public static IDataProvider GetDataProvider(DB2Version version = DB2Version.LUW)

Parameters

version DB2Version

Returns

IDataProvider

ResolveDB2(Assembly)

public static void ResolveDB2(Assembly assembly)

Parameters

assembly Assembly

ResolveDB2(string)

public static void ResolveDB2(string path)

Parameters

path string