2018-11-18 06:33:37 -05:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using PoweredSoft.DynamicQuery.Core;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace PoweredSoft.DynamicQuery.AspNetCore
|
|
|
|
|
{
|
|
|
|
|
public static class ServiceCollectionExtensions
|
|
|
|
|
{
|
2018-11-18 06:34:21 -05:00
|
|
|
|
public static void AddDynamicQueryDefaultMappings(this IServiceCollection services)
|
2018-11-18 06:33:37 -05:00
|
|
|
|
{
|
|
|
|
|
services.AddTransient<ISort, Sort>();
|
|
|
|
|
services.AddTransient<IAggregate, Aggregate>();
|
|
|
|
|
services.AddTransient<ISimpleFilter, SimpleFilter>();
|
|
|
|
|
services.AddTransient<ICompositeFilter, CompositeFilter>();
|
|
|
|
|
services.AddTransient<IGroup, Group>();
|
|
|
|
|
services.AddTransient<IQueryCriteria, QueryCriteria>();
|
|
|
|
|
services.AddTransient<IQueryHandler, QueryHandler>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|