Skip to main content

easyqueryoptionsextensionsefcore-class

Contains several extension methods for EasyQueryOptions which allow to tune up the EasyQuery manager and middleware in case of using them with EntityFrameworkCore

public static class Korzh.EasyQuery.Services.EasyQueryOptionsExtensionsEfCore

Assembly: Korzh.EasyQuery.EntityFrameworkCore.Relational.dll

Static Methods

NameTypeDescription
UseDbContext(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, [FormatType](/korzh-easyquery-db-namespace/formattype-enum) formatType, `Action`<[DbContextModelExtractorOptions](/korzh-easyquery-entityframeworkcore-namespace/dbcontextmodelextractoroptions-class)> configurator = null)voidRegisters the model loader and connection resolver based on the DbContext type passed in a type parameter.
UseDbContext(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, `Action`<[DbContextModelExtractorOptions](/korzh-easyquery-entityframeworkcore-namespace/dbcontextmodelextractoroptions-class)> configurator = null)voidRegisters the model loader and connection resolver based on the DbContext type passed in a type parameter.
UseDbContext(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, `Func`<`IServiceProvider`, `DbContext`> dbContextResolver, `Action`<[DbContextModelExtractorOptions](/korzh-easyquery-entityframeworkcore-namespace/dbcontextmodelextractoroptions-class)> configurator = null)voidRegisters the model loader and connection resolver based on the DbContext type passed in a type parameter.