constellation-api/CH.CQRS/Query/EnergyProvider/EnergyProviderQueriesModule.cs

16 lines
490 B
C#
Raw Permalink Normal View History

using CH.Dal;
using Microsoft.Extensions.DependencyInjection;
using OpenHarbor.CQRS.DynamicQuery;
using PoweredSoft.Module.Abstractions;
namespace CH.CQRS.Query.EnergyProvider;
public class EnergyProviderQueriesModule : IModule
{
public IServiceCollection ConfigureServices(IServiceCollection services)
{
services.AddDynamicQuery<EnergyProviderQueryItem>()
.AddQueryableProviderOverride<EnergyProviderQueryItem, EnergyProviderQueryableProvider>();
return services;
}
}