17 lines
508 B
C#
17 lines
508 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>();
|
||
|
|
||
|
return services;
|
||
|
}
|
||
|
}
|