From de72b86abfaa14b334616d90fef3ddbfc5e35788 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Tue, 27 Apr 2021 14:08:39 -0400 Subject: [PATCH] updated and added case insensitive support. --- .../PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj | 2 +- .../DynamicQueryFilter.cs | 5 ++++- .../PoweredSoft.CQRS.DynamicQuery.csproj | 2 +- .../GraphQLAdvanceQueryFilter.cs | 2 ++ .../PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj b/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj index 6dc5922..52383af 100644 --- a/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj +++ b/PoweredSoft.CQRS.DynamicQuery.Abstractions/PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj @@ -5,7 +5,7 @@ - + diff --git a/PoweredSoft.CQRS.DynamicQuery.AspNetCore/DynamicQueryFilter.cs b/PoweredSoft.CQRS.DynamicQuery.AspNetCore/DynamicQueryFilter.cs index c5ff8fb..6a83262 100644 --- a/PoweredSoft.CQRS.DynamicQuery.AspNetCore/DynamicQueryFilter.cs +++ b/PoweredSoft.CQRS.DynamicQuery.AspNetCore/DynamicQueryFilter.cs @@ -30,6 +30,8 @@ namespace PoweredSoft.CQRS.DynamicQuery.AspNetCore } } + public bool? CaseInsensitive { get; set; } + public IFilter ToFilter() { var type = Enum.Parse(Type); @@ -67,7 +69,8 @@ namespace PoweredSoft.CQRS.DynamicQuery.AspNetCore Type = type, Not = Not, Path = Path, - Value = value + Value = value, + CaseInsensitive = CaseInsensitive, }; return simpleFilter; } diff --git a/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj b/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj index ca38f73..19e5c02 100644 --- a/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj +++ b/PoweredSoft.CQRS.DynamicQuery/PoweredSoft.CQRS.DynamicQuery.csproj @@ -6,7 +6,7 @@ - + diff --git a/PoweredSoft.CQRS.GraphQL.DynamicQuery/GraphQLAdvanceQueryFilter.cs b/PoweredSoft.CQRS.GraphQL.DynamicQuery/GraphQLAdvanceQueryFilter.cs index 20464f0..9106aeb 100644 --- a/PoweredSoft.CQRS.GraphQL.DynamicQuery/GraphQLAdvanceQueryFilter.cs +++ b/PoweredSoft.CQRS.GraphQL.DynamicQuery/GraphQLAdvanceQueryFilter.cs @@ -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, diff --git a/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj b/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj index 995173c..074c166 100644 --- a/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj +++ b/PoweredSoft.CQRS.GraphQL.DynamicQuery/PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj @@ -6,7 +6,7 @@ - +