Interface IQueryProviderFactory
Interface, which describe factory for creating provider.
Namespace: Kros.KORM.Query
Assembly: Kros.KORM.dll
Syntax
public interface IQueryProviderFactory
Methods
Create(ConnectionStringSettings, IModelBuilder, IDatabaseMapper)
Creates the specified QueryProvider.
Declaration
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 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. |