Skip to content

Commit 087153b

Browse files
author
David Lebee
committed
better
1 parent 344caf6 commit 087153b

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

PoweredSoft.DynamicQuery.AspNetCore/PoweredSoft.DynamicQuery.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RepositoryUrl>https://github.com/PoweredSoft/DynamicQuery</RepositoryUrl>
1010
<RepositoryType>github</RepositoryType>
1111
<PackageTags>powered,soft,dynamic,criteria,query,builder,asp,net,core</PackageTags>
12-
<Version>1.0.1</Version>
12+
<Version>1.0.2</Version>
1313
<PackageIconUrl>https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&amp;amp;r=g&amp;amp;d=retro</PackageIconUrl>
1414
</PropertyGroup>
1515

PoweredSoft.DynamicQuery.AspNetCore/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

PoweredSoft.DynamicQuery/PoweredSoft.DynamicQuery.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RepositoryUrl>https://github.com/PoweredSoft/DynamicQuery</RepositoryUrl>
1010
<RepositoryType>github</RepositoryType>
1111
<PackageTags>powered,soft,dynamic,criteria,query,builder</PackageTags>
12-
<Version>1.0.5</Version>
12+
<Version>1.0.6</Version>
1313
<PackageIconUrl>https://secure.gravatar.com/avatar/4e32f73820c16718909a06c2927f1f8b?s=512&amp;amp;r=g&amp;amp;d=retro</PackageIconUrl>
1414
</PropertyGroup>
1515

@@ -18,4 +18,10 @@
1818
<ProjectReference Include="..\PoweredSoft.DynamicQuery.Core\PoweredSoft.DynamicQuery.Core.csproj" />
1919
</ItemGroup>
2020

21+
<ItemGroup>
22+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions">
23+
<HintPath>..\..\..\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.dependencyinjection.abstractions\2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
24+
</Reference>
25+
</ItemGroup>
26+
2127
</Project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using Microsoft.Extensions.DependencyInjection;
2+
using Microsoft.Extensions.DependencyInjection.Extensions;
3+
using PoweredSoft.DynamicQuery.Core;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Text;
7+
8+
namespace PoweredSoft.DynamicQuery
9+
{
10+
public static class ServiceCollectionExtensions
11+
{
12+
public static IServiceCollection AddPoweredSoftDynamicQuery(this IServiceCollection services)
13+
{
14+
services.TryAddTransient<ISort, Sort>();
15+
services.TryAddTransient<IAggregate, Aggregate>();
16+
services.TryAddTransient<ISimpleFilter, SimpleFilter>();
17+
services.TryAddTransient<ICompositeFilter, CompositeFilter>();
18+
services.TryAddTransient<IGroup, Group>();
19+
services.TryAddTransient<IQueryCriteria, QueryCriteria>();
20+
services.TryAddTransient<IQueryHandler, QueryHandler>();
21+
return services;
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)