From 6586a1a60b8d0a6924ea7192adc63785f9968b21 Mon Sep 17 00:00:00 2001 From: jung Date: Sun, 17 Sep 2023 11:07:58 +0200 Subject: [PATCH] agg prop transform --- Core.Arango.DevExtreme/ArangoTransform.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Core.Arango.DevExtreme/ArangoTransform.cs b/Core.Arango.DevExtreme/ArangoTransform.cs index effea91..2a516d7 100644 --- a/Core.Arango.DevExtreme/ArangoTransform.cs +++ b/Core.Arango.DevExtreme/ArangoTransform.cs @@ -400,6 +400,11 @@ private string Aggregate() var rightSelector = selector; var leftSelector = selector.Replace(".", ""); + + rightSelector = _settings?.PropertyTransform != null + ? _settings.PropertyTransform(selector, _settings) + : rightSelector; + var op = s.SummaryType.ToUpperInvariant(); Summaries.Add($"{op}{leftSelector}"); @@ -413,6 +418,11 @@ private string Aggregate() { var selector = _settings.ValidPropertyName(s.Selector).FirstCharOfPropertiesToUpper(); var rightSelector = selector; + + rightSelector = _settings?.PropertyTransform != null + ? _settings.PropertyTransform(selector, _settings) + : rightSelector; + var leftSelector = selector.Replace(".", ""); var op = s.SummaryType.ToUpperInvariant();