Class SqlServerProviderAdapter
- Namespace
- LinqToDB.Internal.DataProvider.SqlServer
- Assembly
- linq2db.dll
public sealed class SqlServerProviderAdapter : IDynamicProviderAdapter
- Inheritance
-
objectSqlServerProviderAdapter
- Implements
- Extension Methods
Fields
MicrosoftAssemblyName
public const string MicrosoftAssemblyName = "Microsoft.Data.SqlClient"
Field Value
MicrosoftClientNamespace
public const string MicrosoftClientNamespace = "Microsoft.Data.SqlClient"
Field Value
MicrosoftProviderFactoryName
public const string MicrosoftProviderFactoryName = "Microsoft.Data.SqlClient"
Field Value
SystemAssemblyName
public const string SystemAssemblyName = "System.Data.SqlClient"
Field Value
SystemClientNamespace
public const string SystemClientNamespace = "System.Data.SqlClient"
Field Value
SystemProviderFactoryName
public const string SystemProviderFactoryName = "System.Data.SqlClient"
Field Value
Properties
CommandType
Gets type, that implements DbCommand for current ADO.NET provider.
public Type CommandType { get; }
Property Value
ConnectionType
Gets type, that implements DbConnection for current ADO.NET provider.
public Type ConnectionType { get; }
Property Value
DataReaderType
Gets type, that implements DbDataReader for current ADO.NET provider.
public Type DataReaderType { get; }
Property Value
FloatToVectorConverter
public Func<float[], object>? FloatToVectorConverter { get; }
Property Value
GetDateTimeOffsetReaderMethod
public string GetDateTimeOffsetReaderMethod { get; }
Property Value
GetDbType
public Func<DbParameter, SqlDbType> GetDbType { get; }
Property Value
GetSqlJsonReaderMethod
public string? GetSqlJsonReaderMethod { get; }
Property Value
GetSqlVectorReaderMethod
public string? GetSqlVectorReaderMethod { get; }
Property Value
GetSqlXmlReaderMethod
public string GetSqlXmlReaderMethod { get; }
Property Value
GetTimeSpanReaderMethod
public string GetTimeSpanReaderMethod { get; }
Property Value
GetTypeName
public Func<DbParameter, string> GetTypeName { get; }
Property Value
GetUdtTypeName
public Func<DbParameter, string> GetUdtTypeName { get; }
Property Value
JsonDbType
public SqlDbType JsonDbType { get; }
Property Value
JsonDocumentToStringConverter
public Func<object, string?>? JsonDocumentToStringConverter { get; }
Property Value
JsonDocumentType
public Type? JsonDocumentType { get; }
Property Value
MappingSchema
public MappingSchema? MappingSchema { get; }
Property Value
ParameterType
Gets type, that implements DbParameter for current ADO.NET provider.
public Type ParameterType { get; }
Property Value
Provider
public SqlServerProvider Provider { get; }
Property Value
SetDbType
public Action<DbParameter, SqlDbType> SetDbType { get; }
Property Value
SetTypeName
public Action<DbParameter, string> SetTypeName { get; }
Property Value
SetUdtTypeName
public Action<DbParameter, string> SetUdtTypeName { get; }
Property Value
SqlDataRecordType
public Type SqlDataRecordType { get; }
Property Value
SqlExceptionType
public Type SqlExceptionType { get; }
Property Value
SqlHalfVectorType
public Type? SqlHalfVectorType { get; }
Property Value
SqlJsonType
public Type? SqlJsonType { get; }
Property Value
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
SqlVectorType
public Type? SqlVectorType { get; }
Property Value
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
VectorDbType
public SqlDbType VectorDbType { get; }
Property Value
VectorToFloatConverter
public Func<object, float[]>? VectorToFloatConverter { get; }
Property Value
Methods
CreateBulkCopyColumnMapping(int, string)
public SqlServerProviderAdapter.SqlBulkCopyColumnMapping CreateBulkCopyColumnMapping(int source, string destination)
Parameters
Returns
CreateConnection(string)
Creates instance of database provider connection class using provided connection string.
public DbConnection CreateConnection(string connectionString)
Parameters
connectionStringstringConnection string to use with created connection.
Returns
- DbConnection
Connection instance.
GetInstance(SqlServerProvider)
public static SqlServerProviderAdapter GetInstance(SqlServerProvider provider)
Parameters
providerSqlServerProvider