12 lines
381 B
C#
12 lines
381 B
C#
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>();
|
|
}
|
|
} |