Class SqlServerDataProvider
- Namespace
- LinqToDB.DataProvider.SqlServer
- Assembly
- linq2db.dll
public abstract class SqlServerDataProvider : DynamicDataProviderBase<SqlServerProviderAdapter>, IDataProvider
- Inheritance
-
SqlServerDataProvider
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
SqlServerDataProvider(string, SqlServerVersion)
protected SqlServerDataProvider(string name, SqlServerVersion version)
Parameters
name
string
version
SqlServerVersion
SqlServerDataProvider(string, SqlServerVersion, SqlServerProvider)
protected SqlServerDataProvider(string name, SqlServerVersion version, SqlServerProvider provider)
Parameters
name
string
version
SqlServerVersion
provider
SqlServerProvider
Properties
Provider
public SqlServerProvider Provider { get; }
Property Value
- SqlServerProvider
SupportedTableOptions
public override TableOptions SupportedTableOptions { get; }
Property Value
- TableOptions
Version
public SqlServerVersion Version { get; }
Property Value
- SqlServerVersion
Methods
AddUdtType(Type, string)
public void AddUdtType(Type type, string udtName)
Parameters
type
Type
udtName
string
AddUdtType(Type, string, object?, DataType)
public void AddUdtType(Type type, string udtName, object? defaultValue, DataType dataType = DataType.Undefined)
Parameters
type
Type
udtName
string
defaultValue
object
dataType
DataType
AddUdtType<T>(string, T, DataType)
public void AddUdtType<T>(string udtName, T defaultValue, DataType dataType = DataType.Undefined)
Parameters
udtName
string
defaultValue
T
dataType
DataType
Type Parameters
T
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
DataOptions
table
ITable<T>
source
IEnumerable<T>
cancellationToken
CancellationToken
Returns
- Task<BulkCopyRowsCopied>
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
DataOptions
table
ITable<T>
source
IEnumerable<T>
Returns
- BulkCopyRowsCopied
Type Parameters
T
CreateSqlBuilder(MappingSchema, DataOptions)
public override ISqlBuilder CreateSqlBuilder(MappingSchema mappingSchema, DataOptions dataOptions)
Parameters
mappingSchema
MappingSchema
dataOptions
DataOptions
Returns
- ISqlBuilder
GetConnectionInfo(DataConnection, string)
public override object? GetConnectionInfo(DataConnection dataConnection, string parameterName)
Parameters
dataConnection
DataConnection
parameterName
string
Returns
- object
GetSchemaProvider()
public override ISchemaProvider GetSchemaProvider()
Returns
- ISchemaProvider
GetSqlOptimizer(DataOptions)
public override ISqlOptimizer GetSqlOptimizer(DataOptions dataOptions)
Parameters
dataOptions
DataOptions
Returns
- ISqlOptimizer
SetParameter(DataConnection, DbParameter, string, DbDataType, object?)
public override void SetParameter(DataConnection dataConnection, DbParameter parameter, string name, DbDataType dataType, object? value)
Parameters
dataConnection
DataConnection
parameter
DbParameter
name
string
dataType
DbDataType
value
object
SetParameterType(DataConnection, DbParameter, DbDataType)
protected override void SetParameterType(DataConnection dataConnection, DbParameter parameter, DbDataType dataType)
Parameters
dataConnection
DataConnection
parameter
DbParameter
dataType
DbDataType