Table of Contents

Class SqlServerProviderAdapter

Namespace
LinqToDB.Internal.DataProvider.SqlServer
Assembly
linq2db.dll
public sealed class SqlServerProviderAdapter : IDynamicProviderAdapter
Inheritance
object
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

FloatToVectorConverter

public Func<float[], object>? FloatToVectorConverter { get; }

Property Value

Func<float[], object>

GetDateTimeOffsetReaderMethod

public string GetDateTimeOffsetReaderMethod { get; }

Property Value

string

GetDbType

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

Property Value

Func<DbParameter, SqlDbType>

GetSqlJsonReaderMethod

public string? GetSqlJsonReaderMethod { get; }

Property Value

string

GetSqlVectorReaderMethod

public string? GetSqlVectorReaderMethod { get; }

Property Value

string

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>

JsonDbType

public SqlDbType JsonDbType { get; }

Property Value

SqlDbType

JsonDocumentToStringConverter

public Func<object, string?>? JsonDocumentToStringConverter { get; }

Property Value

Func<object, string>

JsonDocumentType

public Type? JsonDocumentType { get; }

Property Value

Type

MappingSchema

public MappingSchema? MappingSchema { get; }

Property Value

MappingSchema

ParameterType

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

public Type ParameterType { get; }

Property Value

Type

Provider

public SqlServerProvider Provider { get; }

Property Value

SqlServerProvider

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

SqlHalfVectorType

public Type? SqlHalfVectorType { get; }

Property Value

Type

SqlJsonType

public Type? SqlJsonType { get; }

Property Value

Type

SqlServer2005BulkCopyUnsupported

True when the loaded SqlClient driver dropped SqlBulkCopy support for SQL Server 2005 (Microsoft.Data.SqlClient 7.0+). The destination-table inspection statement SqlBulkCopy issues on 7.0+ uses T-SQL syntax 2005 doesn't accept, so callers should fall back to a non-SqlBulkCopy path for 2005 targets. False for System.Data.SqlClient regardless of version.

public bool SqlServer2005BulkCopyUnsupported { get; }

Property Value

bool

SqlVectorType

public Type? SqlVectorType { 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

VectorDbType

public SqlDbType VectorDbType { get; }

Property Value

SqlDbType

VectorToFloatConverter

public Func<object, float[]>? VectorToFloatConverter { get; }

Property Value

Func<object, float[]>

Methods

CreateBulkCopyColumnMapping(int, string)

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

Parameters

source int
destination string

Returns

SqlServerProviderAdapter.SqlBulkCopyColumnMapping

CreateConnection(string)

Creates instance of database provider connection class using provided connection string.

public DbConnection CreateConnection(string connectionString)

Parameters

connectionString string

Connection string to use with created connection.

Returns

DbConnection

Connection instance.

GetInstance(SqlServerProvider)

public static SqlServerProviderAdapter GetInstance(SqlServerProvider provider)

Parameters

provider SqlServerProvider

Returns

SqlServerProviderAdapter