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