Class DB2DataProvider
- Namespace
- LinqToDB.DataProvider.DB2
- Assembly
- linq2db.dll
public abstract class DB2DataProvider : DynamicDataProviderBase<DB2ProviderAdapter>, IDataProvider
- Inheritance
-
DB2DataProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
DB2DataProvider(string, DB2Version)
protected DB2DataProvider(string name, DB2Version version)
Parameters
name
stringversion
DB2Version
Properties
SupportedTableOptions
public override TableOptions SupportedTableOptions { get; }
Property Value
Version
public DB2Version Version { get; }
Property Value
Methods
BulkCopyAsync<T>(DataOptions, ITable<T>, IEnumerable<T>, CancellationToken)
public override Task<BulkCopyRowsCopied> BulkCopyAsync<T>(DataOptions options, ITable<T> table, IEnumerable<T> source, CancellationToken cancellationToken) where T : notnull
Parameters
options
DataOptionstable
ITable<T>source
IEnumerable<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
BulkCopy<T>(DataOptions, ITable<T>, IEnumerable<T>)
public override BulkCopyRowsCopied BulkCopy<T>(DataOptions options, ITable<T> table, IEnumerable<T> source) where T : notnull
Parameters
options
DataOptionstable
ITable<T>source
IEnumerable<T>
Returns
Type Parameters
T
CreateSqlBuilder(MappingSchema, DataOptions)
public override ISqlBuilder CreateSqlBuilder(MappingSchema mappingSchema, DataOptions dataOptions)
Parameters
mappingSchema
MappingSchemadataOptions
DataOptions
Returns
GetSchemaProvider()
public override ISchemaProvider GetSchemaProvider()
Returns
GetSqlOptimizer(DataOptions)
public override ISqlOptimizer GetSqlOptimizer(DataOptions dataOptions)
Parameters
dataOptions
DataOptions
Returns
SetParameter(DataConnection, DbParameter, string, DbDataType, object?)
public override void SetParameter(DataConnection dataConnection, DbParameter parameter, string name, DbDataType dataType, object? value)
Parameters
dataConnection
DataConnectionparameter
DbParametername
stringdataType
DbDataTypevalue
object
SetParameterType(DataConnection, DbParameter, DbDataType)
protected override void SetParameterType(DataConnection dataConnection, DbParameter parameter, DbDataType dataType)
Parameters
dataConnection
DataConnectionparameter
DbParameterdataType
DbDataType