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
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
GetDateTimeOffsetReaderMethod
public string GetDateTimeOffsetReaderMethod { get; }
Property Value
GetDbType
public Func<DbParameter, SqlDbType> GetDbType { 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
ParameterType
Gets type, that implements DbParameter for current ADO.NET provider.
public Type ParameterType { 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
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
Methods
CreateBulkCopy(DbConnection, SqlBulkCopyOptions, DbTransaction?)
public SqlServerProviderAdapter.SqlBulkCopy CreateBulkCopy(DbConnection connection, SqlServerProviderAdapter.SqlBulkCopyOptions options, DbTransaction? transaction)
Parameters
connection
DbConnectionoptions
SqlServerProviderAdapter.SqlBulkCopyOptionstransaction
DbTransaction
Returns
CreateBulkCopyColumnMapping(int, string)
public SqlServerProviderAdapter.SqlBulkCopyColumnMapping CreateBulkCopyColumnMapping(int source, string destination)
Parameters
Returns
CreateConnection(string)
public SqlServerProviderAdapter.SqlConnection CreateConnection(string connectionString)
Parameters
connectionString
string
Returns
CreateConnectionStringBuilder(string)
public SqlServerProviderAdapter.SqlConnectionStringBuilder CreateConnectionStringBuilder(string connectionString)
Parameters
connectionString
string
Returns
GetInstance(SqlServerProvider)
public static SqlServerProviderAdapter GetInstance(SqlServerProvider provider)
Parameters
provider
SqlServerProvider