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(this IServiceCollection services) where TService : class, IQueryableProviderOverride { return services.AddTransient, TService>(); } }