2025-01-27 18:58:42 -05:00
|
|
|
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>();
|
2025-01-30 15:56:40 -05:00
|
|
|
services.AddDynamicQuery<EnergyRateQueryAllItem>()
|
|
|
|
.AddQueryableProviderOverride<EnergyRateQueryAllItem, EnergyRateAllQueryableProvider>();
|
2025-01-27 18:58:42 -05:00
|
|
|
return services;
|
|
|
|
}
|
|
|
|
}
|