Interface IQueryProviderFactory
Interface, which describe factory for creating provider.
Namespace: Kros.KORM.Query
Assembly: Kros.KORM.dll
Syntax
public interface IQueryProviderFactory
Methods
Create(KormConnectionSettings, IModelBuilder, IDatabaseMapper)
Creates the specified QueryProvider.
Declaration
IQueryProvider Create(KormConnectionSettings connectionString, IModelBuilder modelBuilder, IDatabaseMapper databaseMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| KormConnectionSettings | connectionString | The connection string. |
| IModelBuilder | modelBuilder | The model builder. |
| IDatabaseMapper | databaseMapper | Database mapper. |
Returns
| Type | Description |
|---|---|
| IQueryProvider | Instance of IQueryProvider. |
Create(DbConnection, IModelBuilder, IDatabaseMapper)
Creates the specified QueryProvider.
Declaration
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 IQueryProvider. |