Contains several extension methods for EasyQueryOptions which allows to tune up the EasyQuery manager and middleware.
public static class Korzh.EasyQuery.Services.EasyQueryOptionsExtentionsDb
Static Methods
Type | Name | Description |
---|---|---|
void |
UseDbCommandTuner(this EasyQueryOptions options, Action<T> tuner) |
|
void |
UseDbConnection(this EasyQueryOptions options, String connectionString = null) |
Registers the database connection resolver. |
void |
UseDbConnection(this EasyQueryOptions options, Func<IServiceProvider, String, DbConnection> resolver) |
Registers the database connection resolver. |
void |
UseDbConnectionModelLoader(this EasyQueryOptions easyQueryOptions, Action<DbConnectionLoaderOptions> configurator = null) |
Register the model loader resolver which returns Korzh.EasyQuery.Services.DbConnectionModelLoader the database connection model loader. |
void |
UseSqlFormats(this EasyQueryOptions options, FormatType formatType, Action<DbQueryFormats> formatsTuner = null) |
Set the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL) |
void |
UseSqlFormats(this EasyQueryOptions options, Action<DbQueryFormats> formatsTuner) |
Set the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL) |