Skip to 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

Package: Korzh.EasyQuery.Db (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Db.dll

NameTypeDescription
UseDbCommandTuner(this EasyQueryOptions options, Action<T> tuner)void
UseDbConnection(this EasyQueryOptions options, string connectionString = null)void
UseDbConnection(this EasyQueryOptions options, Func<EasyQueryManager, T> resolver)void
UseDbConnectionModelLoader(this EasyQueryOptions easyQueryOptions, Action<DbConnectionModelLoaderOptions> configurator = null)voidRegister the model loader resolver which returns Korzh.EasyQuery.Services.DbConnectionModelLoader the database connection model loader.
UseSqlFormats(this EasyQueryOptions options, FormatType formatType, Action<SqlFormats> 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)