Table of Contents

Class SqlServerProviderAdapter

Namespace
LinqToDB.DataProvider.SqlServer
Assembly
linq2db.dll
public class SqlServerProviderAdapter : IDynamicProviderAdapter
Inheritance
SqlServerProviderAdapter
Implements
Extension Methods

Fields

MicrosoftAssemblyName

public const string MicrosoftAssemblyName = "Microsoft.Data.SqlClient"

Field Value

string

MicrosoftClientNamespace

public const string MicrosoftClientNamespace = "Microsoft.Data.SqlClient"

Field Value

string

MicrosoftProviderFactoryName

public const string MicrosoftProviderFactoryName = "Microsoft.Data.SqlClient"

Field Value

string

SystemAssemblyName

public const string SystemAssemblyName = "System.Data.SqlClient"

Field Value

string

SystemClientNamespace

public const string SystemClientNamespace = "System.Data.SqlClient"

Field Value

string

SystemProviderFactoryName

public const string SystemProviderFactoryName = "System.Data.SqlClient"

Field Value

string

Properties

CommandType

Gets type, that implements DbCommand for current ADO.NET provider.

public Type CommandType { get; }

Property Value

Type

ConnectionType

Gets type, that implements DbConnection for current ADO.NET provider.

public Type ConnectionType { get; }

Property Value

Type

DataReaderType

Gets type, that implements DbDataReader for current ADO.NET provider.

public Type DataReaderType { get; }

Property Value

Type

GetDateTimeOffsetReaderMethod

public string GetDateTimeOffsetReaderMethod { get; }

Property Value

string

GetDbType

public Func<DbParameter, SqlDbType> GetDbType { get; }

Property Value

Func<DbParameter, SqlDbType>

GetSqlXmlReaderMethod

public string GetSqlXmlReaderMethod { get; }

Property Value

string

GetTimeSpanReaderMethod

public string GetTimeSpanReaderMethod { get; }

Property Value

string

GetTypeName

public Func<DbParameter, string> GetTypeName { get; }

Property Value

Func<DbParameter, string>

GetUdtTypeName

public Func<DbParameter, string> GetUdtTypeName { get; }

Property Value

Func<DbParameter, string>

ParameterType

Gets type, that implements DbParameter for current ADO.NET provider.

public Type ParameterType { get; }

Property Value

Type

SetDbType

public Action<DbParameter, SqlDbType> SetDbType { get; }

Property Value

Action<DbParameter, SqlDbType>

SetTypeName

public Action<DbParameter, string> SetTypeName { get; }

Property Value

Action<DbParameter, string>

SetUdtTypeName

public Action<DbParameter, string> SetUdtTypeName { get; }

Property Value

Action<DbParameter, string>

SqlDataRecordType

public Type SqlDataRecordType { get; }

Property Value

Type

SqlExceptionType

public Type SqlExceptionType { get; }

Property Value

Type

TransactionType

Gets type, that implements DbTransaction for current ADO.NET provider. For providers/databases without transaction support contains null.

public Type TransactionType { get; }

Property Value

Type

Methods

CreateBulkCopy(DbConnection, SqlBulkCopyOptions, DbTransaction?)

public SqlServerProviderAdapter.SqlBulkCopy CreateBulkCopy(DbConnection connection, SqlServerProviderAdapter.SqlBulkCopyOptions options, DbTransaction? transaction)

Parameters

connection DbConnection
options SqlServerProviderAdapter.SqlBulkCopyOptions
transaction DbTransaction

Returns

SqlServerProviderAdapter.SqlBulkCopy

CreateBulkCopyColumnMapping(int, string)

public SqlServerProviderAdapter.SqlBulkCopyColumnMapping CreateBulkCopyColumnMapping(int source, string destination)

Parameters

source int
destination string

Returns

SqlServerProviderAdapter.SqlBulkCopyColumnMapping

CreateConnection(string)

public SqlServerProviderAdapter.SqlConnection CreateConnection(string connectionString)

Parameters

connectionString string

Returns

SqlServerProviderAdapter.SqlConnection

CreateConnectionStringBuilder(string)

public SqlServerProviderAdapter.SqlConnectionStringBuilder CreateConnectionStringBuilder(string connectionString)

Parameters

connectionString string

Returns

SqlServerProviderAdapter.SqlConnectionStringBuilder

GetInstance(SqlServerProvider)

public static SqlServerProviderAdapter GetInstance(SqlServerProvider provider)

Parameters

provider SqlServerProvider

Returns

SqlServerProviderAdapter