Class SqlServerQueryProviderFactory
Factory which create sql server provider.
Inheritance
System.Object
SqlServerQueryProviderFactory
Implements
Namespace: Kros.KORM.Query
Assembly: Kros.KORM.dll
Syntax
public class SqlServerQueryProviderFactory : IQueryProviderFactory
Methods
Create(ConnectionStringSettings, IModelBuilder, IDatabaseMapper)
Creates the SqlServer query provider.
Declaration
public IQueryProvider Create(ConnectionStringSettings connectionString, IModelBuilder modelBuilder, IDatabaseMapper databaseMapper)
Parameters
Type | Name | Description |
---|---|---|
System.Configuration.ConnectionStringSettings | connectionString | The connection string. |
IModelBuilder | modelBuilder | The model builder. |
IDatabaseMapper | databaseMapper | Database mapper. |
Returns
Type | Description |
---|---|
IQueryProvider | Instance of SqlServerQueryProvider. |
Create(DbConnection, IModelBuilder, IDatabaseMapper)
Creates the SqlServer query provider.
Declaration
public IQueryProvider Create(DbConnection connection, IModelBuilder modelBuilder, IDatabaseMapper databaseMapper)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbConnection | connection | The connection. |
IModelBuilder | modelBuilder | The model builder. |
IDatabaseMapper | databaseMapper | Database mapper. |
Returns
Type | Description |
---|---|
IQueryProvider | Instance of SqlServerQueryProvider. |