updated and added case insensitive support.
This commit is contained in:
parent
3020fbf126
commit
de72b86abf
@ -5,7 +5,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="PoweredSoft.DynamicQuery.Core" Version="2.1.4" />
|
||||
<PackageReference Include="PoweredSoft.DynamicQuery.Core" Version="2.1.5" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -30,6 +30,8 @@ namespace PoweredSoft.CQRS.DynamicQuery.AspNetCore
|
||||
}
|
||||
}
|
||||
|
||||
public bool? CaseInsensitive { get; set; }
|
||||
|
||||
public IFilter ToFilter()
|
||||
{
|
||||
var type = Enum.Parse<FilterType>(Type);
|
||||
@ -67,7 +69,8 @@ namespace PoweredSoft.CQRS.DynamicQuery.AspNetCore
|
||||
Type = type,
|
||||
Not = Not,
|
||||
Path = Path,
|
||||
Value = value
|
||||
Value = value,
|
||||
CaseInsensitive = CaseInsensitive,
|
||||
};
|
||||
return simpleFilter;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Pluralize.NET" Version="1.0.2" />
|
||||
<PackageReference Include="PoweredSoft.DynamicQuery" Version="2.1.4" />
|
||||
<PackageReference Include="PoweredSoft.DynamicQuery" Version="2.1.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -10,6 +10,7 @@ namespace PoweredSoft.CQRS.GraphQL.DynamicQuery
|
||||
{
|
||||
public bool? And { get; set; }
|
||||
public FilterType Type { get; set; }
|
||||
public bool? CaseInsensitive { get; set; }
|
||||
public string Path { get; set; }
|
||||
public GraphQLVariantInput Value { get; set; }
|
||||
public bool? Not { get; set; }
|
||||
@ -38,6 +39,7 @@ namespace PoweredSoft.CQRS.GraphQL.DynamicQuery
|
||||
return new SimpleFilter
|
||||
{
|
||||
And = And,
|
||||
CaseInsensitive = CaseInsensitive,
|
||||
Type = Type,
|
||||
Not = Not,
|
||||
Path = Path,
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="PoweredSoft.DynamicQuery" Version="2.1.4" />
|
||||
<PackageReference Include="PoweredSoft.DynamicQuery" Version="2.1.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user