17 lines
492 B
C#
17 lines
492 B
C#
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace CH.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>();
|
|||
|
}
|
|||
|
}
|