Skip to main content

easyqueryoptionsextensionsef-class

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

public static class Korzh.EasyQuery.Services.EasyQueryOptionsExtensionsEf

Assembly: Korzh.EasyQuery.EntityFramework6.dll

Static Methods

NameTypeDescription
UseDbContext(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, `DbContext` dbContext, `Action`<[DbContextModelExtractorOptions](/korzh-easyquery-entityframework-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, `DbContext` dbContext, [FormatType](/korzh-easyquery-db-namespace/formattype-enum) formatType, `Action`<[DbContextModelExtractorOptions](/korzh-easyquery-entityframework-namespace/dbcontextmodelextractoroptions-class)> configurator = null)voidRegisters the model loader and connection resolver based on the DbContext type passed in a type parameter.
UseEdmxFile(this [EasyQueryOptions](/korzh-easyquery-services-namespace/easyqueryoptions-class) options, `string` fileName, `Action`<[EdmxModelExtractorOptions](/korzh-easyquery-entityframework-namespace/edmxmodelextractoroptions-class)> configurator = null)voidRegisters the model loader from Entity Framework Edmx file