Skip to main content

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

NameTypeDescription
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)voidRegister 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)voidSet the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL)
UseSqlFormats(this EasyQueryOptions options, Action<SqlFormats> formatsTuner)voidSet the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL)