updated and added case insensitive support.

This commit is contained in:
David Lebee 2021-04-27 14:08:39 -04:00
parent 3020fbf126
commit de72b86abf
5 changed files with 9 additions and 4 deletions

View File

@ -5,7 +5,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="PoweredSoft.DynamicQuery.Core" Version="2.1.4" /> <PackageReference Include="PoweredSoft.DynamicQuery.Core" Version="2.1.5" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -30,6 +30,8 @@ namespace PoweredSoft.CQRS.DynamicQuery.AspNetCore
} }
} }
public bool? CaseInsensitive { get; set; }
public IFilter ToFilter() public IFilter ToFilter()
{ {
var type = Enum.Parse<FilterType>(Type); var type = Enum.Parse<FilterType>(Type);
@ -67,7 +69,8 @@ namespace PoweredSoft.CQRS.DynamicQuery.AspNetCore
Type = type, Type = type,
Not = Not, Not = Not,
Path = Path, Path = Path,
Value = value Value = value,
CaseInsensitive = CaseInsensitive,
}; };
return simpleFilter; return simpleFilter;
} }

View File

@ -6,7 +6,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Pluralize.NET" Version="1.0.2" /> <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>
<ItemGroup> <ItemGroup>

View File

@ -10,6 +10,7 @@ namespace PoweredSoft.CQRS.GraphQL.DynamicQuery
{ {
public bool? And { get; set; } public bool? And { get; set; }
public FilterType Type { get; set; } public FilterType Type { get; set; }
public bool? CaseInsensitive { get; set; }
public string Path { get; set; } public string Path { get; set; }
public GraphQLVariantInput Value { get; set; } public GraphQLVariantInput Value { get; set; }
public bool? Not { get; set; } public bool? Not { get; set; }
@ -38,6 +39,7 @@ namespace PoweredSoft.CQRS.GraphQL.DynamicQuery
return new SimpleFilter return new SimpleFilter
{ {
And = And, And = And,
CaseInsensitive = CaseInsensitive,
Type = Type, Type = Type,
Not = Not, Not = Not,
Path = Path, Path = Path,

View File

@ -6,7 +6,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> <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>
<ItemGroup> <ItemGroup>