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
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
Methods
CreateDataConnection(DbConnection, DB2Version)
Creates DataConnection object using provided connection object.
public static DataConnection CreateDataConnection(DbConnection connection, DB2Version version = DB2Version.LUW)
Parameters
connection
DbConnectionConnection instance.
version
DB2VersionDB2 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
DbTransactionTransaction instance.
version
DB2VersionDB2 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
stringConnection string.
version
DB2VersionDB2 version.
Returns
- DataConnection
DataConnection instance.
GetDataProvider(DB2Version)
public static IDataProvider GetDataProvider(DB2Version version = DB2Version.LUW)
Parameters
version
DB2Version
Returns
ResolveDB2(Assembly)
public static void ResolveDB2(Assembly assembly)
Parameters
assembly
Assembly
ResolveDB2(string)
public static void ResolveDB2(string path)
Parameters
path
string