Class SqlServerQueryProvider
Provider, which know execute query for Sql Server.
Implements
Inherited Members
Namespace: Kros.KORM.Query
Assembly: Kros.KORM.dll
Syntax
public class SqlServerQueryProvider : QueryProvider, IQueryProvider, IQueryProvider, IDisposable
Constructors
SqlServerQueryProvider(ConnectionStringSettings, ISqlExpressionVisitor, IModelBuilder, ILogger)
Initializes a new instance of the SqlServerQueryProvider class.
Declaration
public SqlServerQueryProvider(ConnectionStringSettings connectionString, ISqlExpressionVisitor sqlGenerator, IModelBuilder modelBuilder, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.ConnectionStringSettings | connectionString | The connection string settings. |
ISqlExpressionVisitor | sqlGenerator | The SQL generator. |
IModelBuilder | modelBuilder | The model builder. |
ILogger | logger | The logger. |
SqlServerQueryProvider(DbConnection, ISqlExpressionVisitor, IModelBuilder, ILogger)
Initializes a new instance of the QueryProvider class.
Declaration
public SqlServerQueryProvider(DbConnection connection, ISqlExpressionVisitor sqlGenerator, IModelBuilder modelBuilder, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbConnection | connection | The connection. |
ISqlExpressionVisitor | sqlGenerator | The SQL generator. |
IModelBuilder | modelBuilder | The model builder. |
ILogger | logger | The logger. |
Properties
DbProviderFactory
Returns DbProviderFactory for current provider.
Declaration
public override DbProviderFactory DbProviderFactory { get; }
Property Value
Type | Description |
---|---|
System.Data.Common.DbProviderFactory |
Overrides
Methods
CreateBulkInsert()
Creates instance of IBulkInsert.
Declaration
public override IBulkInsert CreateBulkInsert()
Returns
Type | Description |
---|---|
IBulkInsert | Instance of IBulkInsert. |
Overrides
CreateBulkUpdate()
Creates instance of IBulkUpdate.
Declaration
public override IBulkUpdate CreateBulkUpdate()
Returns
Type | Description |
---|---|
IBulkUpdate | Instance of IBulkUpdate. |
Overrides
GetSchemaLoader()
Returns instance of SqlServerSchemaLoader.
Declaration
protected override IDatabaseSchemaLoader GetSchemaLoader()
Returns
Type | Description |
---|---|
IDatabaseSchemaLoader |