dotnet-digital-ops/DigitalOps.Dal/DalModule.cs

15 lines
498 B
C#
Raw Normal View History

2025-01-02 15:10:52 -05:00
using Microsoft.Extensions.DependencyInjection;
using OpenHarbor.CQRS.DynamicQuery.Abstractions;
using PoweredSoft.Data.Core;
using PoweredSoft.Module.Abstractions;
namespace DigitalOps.Dal;
public class DalModule : IModule
{
public IServiceCollection ConfigureServices(IServiceCollection services)
{
return services.AddSingleton<IAsyncQueryableHandlerService, InMemoryQueryableHandlerService>()
.AddTransient(typeof(IQueryableProvider<>), typeof(DefaultQueryableProvider<>));
}
}