easyqueryoptionsextentionsdb-class
Contains several extension methods for EasyQueryOptions which allows to tune up the EasyQuery manager and middleware.
public static class Korzh.EasyQuery.Services.EasyQueryOptionsExtentionsDb
Assembly: Korzh.EasyQuery.Db.dll
Static Methods
Name | Type | Description |
---|---|---|
UseDbCommandTuner(this EasyQueryOptions options, Action <T > tuner) | void | |
UseDbConnection(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, `string` connectionString = null) | void | |
UseDbConnection(this EasyQueryOptions options, Func <EasyQueryManager, T > resolver) | void | |
UseDbConnectionModelLoader(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) easyQueryOptions, `Action`<[DbConnectionModelLoaderOptions](/korzh-easyquery-db-namespace/dbconnectionmodelloaderoptions-class)> configurator = null) | void | Register the model loader resolver which returns Korzh.EasyQuery.Services.DbConnectionModelLoader the database connection model loader. |
UseSqlFormats(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, [FormatType](/korzh-easyquery-db-namespace/formattype-enum) formatType, `Action`<[SqlFormats](/korzh-easyquery-db-namespace/sqlformats-class)> formatsTuner = null) | void | Set the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL) |
UseSqlFormats(this EasyQueryOptions options, Action <SqlFormats> formatsTuner) | void | Set the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL) |