add AND / OR support when filtering
Publish NuGets / build (release) Successful in 34s

This commit is contained in:
2026-02-02 17:53:43 -05:00
parent 433b852a43
commit 89ccbe990f
2 changed files with 54 additions and 2 deletions
+4 -2
View File
@@ -2864,7 +2864,8 @@ namespace Svrnty.CQRS.Grpc.Generators
sb.AppendLine(" {");
sb.AppendLine(" Path = protoFilter.Path,");
sb.AppendLine(" Type = ((PoweredSoft.DynamicQuery.Core.FilterType)protoFilter.Type).ToString(),");
sb.AppendLine(" Value = protoFilter.Value");
sb.AppendLine(" Value = protoFilter.Value,");
sb.AppendLine(" And = true");
sb.AppendLine(" };");
sb.AppendLine();
sb.AppendLine(" // Handle nested AND filters");
@@ -2894,7 +2895,8 @@ namespace Svrnty.CQRS.Grpc.Generators
sb.AppendLine(" {");
sb.AppendLine(" Path = pf.Path,");
sb.AppendLine(" Type = ((PoweredSoft.DynamicQuery.Core.FilterType)pf.Type).ToString(),");
sb.AppendLine(" Value = pf.Value");
sb.AppendLine(" Value = pf.Value,");
sb.AppendLine(" And = true");
sb.AppendLine(" };");
sb.AppendLine(" if (pf.And != null && pf.And.Count > 0)");
sb.AppendLine(" {");