Skip to content

Commit

Permalink
agg prop transform
Browse files Browse the repository at this point in the history
  • Loading branch information
coronabytes committed Sep 17, 2023
1 parent 0fa1d49 commit 6586a1a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Core.Arango.DevExtreme/ArangoTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand All @@ -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();

Expand Down

0 comments on commit 6586a1a

Please sign in to comment.