18 lines
653 B
C#
18 lines
653 B
C#
using CH.Dal;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using OpenHarbor.CQRS.DynamicQuery;
|
|
using PoweredSoft.Module.Abstractions;
|
|
|
|
namespace CH.CQRS.Query.EnergyRate;
|
|
|
|
public class EnergyRateQueriesModule : IModule
|
|
{
|
|
public IServiceCollection ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddDynamicQueryWithParams<EnergyRateQueryItem, EnergyRateQueryParams>()
|
|
.AddQueryableProviderOverride<EnergyRateQueryItem, EnergyRateQueryableProvider>();
|
|
services.AddDynamicQuery<EnergyRateQueryAllItem>()
|
|
.AddQueryableProviderOverride<EnergyRateQueryAllItem, EnergyRateAllQueryableProvider>();
|
|
return services;
|
|
}
|
|
} |