updated and added case insensitive support.
This commit is contained in:
parent
3020fbf126
commit
de72b86abf
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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,
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user