not ready for ef core 3 yet but allowing aspnet core 3

This commit is contained in:
David Lebee
2019-10-13 14:06:47 -05:00
parent a74b635332
commit c300906c5e
17 changed files with 90 additions and 18 deletions
+1
View File
@@ -14,6 +14,7 @@ namespace PoweredSoft.DynamicQuery
public class SimpleFilter : ISimpleFilter
{
public bool? And { get; set; }
public bool? Not { get; set; }
public FilterType Type { get; set; }
public string Path { get; set; }
public object Value { get; set; }
@@ -19,7 +19,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.0.0" />
<PackageReference Include="PoweredSoft.Data" Version="1.1.3" />
<PackageReference Include="PoweredSoft.DynamicLinq" Version="1.1.8" />
</ItemGroup>
+1 -1
View File
@@ -339,7 +339,7 @@ namespace PoweredSoft.DynamicQuery
protected virtual void ApplySimpleFilter<TSource>(WhereBuilder whereBuilder, ISimpleFilter filter)
{
var resolvedConditionOperator = ResolveConditionOperatorFrom(filter.Type);
whereBuilder.Compare(filter.Path, resolvedConditionOperator, filter.Value, and: filter.And == true);
whereBuilder.Compare(filter.Path, resolvedConditionOperator, filter.Value, and: filter.And == true, negate: filter.Not == true);
}
protected virtual IFilter InterceptFilter<TSource>(IFilter filter)