not ready for ef core 3 yet but allowing aspnet core 3
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user