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

Static Methods

Name Type Description
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) void Register 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) 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)