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
TypeNameDescription
voidUseDbCommandTuner(this EasyQueryOptions options, Action<T> tuner)
voidUseDbConnection(this EasyQueryOptions options, String connectionString = null)Registers the database connection resolver.
voidUseDbConnection(this EasyQueryOptions options, Func<IServiceProvider, String, DbConnection> resolver)Registers the database connection resolver.
voidUseDbConnectionModelLoader(this EasyQueryOptions easyQueryOptions, Action<DbConnectionLoaderOptions> configurator = null)Register the model loader resolver which returns Korzh.EasyQuery.Services.DbConnectionModelLoader the database connection model loader.
voidUseSqlFormats(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)
voidUseSqlFormats(this EasyQueryOptions options, Action<DbQueryFormats> formatsTuner)Set the formats for result SQL statements to some format type (e.g. MsSqlServer or MySQL)