Skip to main content

easyqueryoptionsextensionsefcoreidentity-class

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

public static class Korzh.EasyQuery.Services.EasyQueryOptionsExtensionsEfCoreIdentity

Assembly: Korzh.EasyQuery.EntityFrameworkCore.Identity.dll

Static Methods

NameTypeDescription
UseDbContextWithoutIdentity(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. Ignores all ASP.NET Core Identity store types, like Microsoft.AspNetCore.Identity.IdentityUser'1, Microsoft.AspNetCore.Identity.IdentityRole'1 etc.
UseDbContextWithoutIdentity(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. Ignores all ASP.NET Core Identity store types, like Microsoft.AspNetCore.Identity.IdentityUser'1, Microsoft.AspNetCore.Identity.IdentityRole'1 etc.