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

12 lines
381 B
C#
Raw Normal View History

2025-01-02 15:10:52 -05:00
using Microsoft.Extensions.DependencyInjection;
namespace DigitalOps.Dal;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddQueryableProviderOverride<T, TService>(this IServiceCollection services)
where TService : class, IQueryableProviderOverride<T>
{
return services.AddTransient<IQueryableProviderOverride<T>, TService>();
}
}