Contains several extension methods which simplifies EasyQuery services registration in the DI.
public static class Microsoft.Extensions.DependencyInjection.EasyQueryServicesBuilderExtensionsAspNetCore
Package: Korzh.EasyQuery.AspNetCore
(targets: net5.0
, netcoreapp3.1
, netstandard2.0
)
Assembly: Korzh.EasyQuery.AspNetCore.dll
Static Methods
Name | Type | Description |
---|---|---|
AddEasyQuery(this IServiceCollection services) |
EasyQueryServicesBuilder | Registers EasyQuery services in the DI container. |
UseSessionCache(this EasyQueryServicesBuilder builder) | EasyQueryServicesBuilder | Adds Korzh.EasyQuery.Services.EqSessionCachingService implementation of the Korzh.EasyQuery.Services.IEqCachingService to the DI container. DO NOT forget to turn on session in your application |