Kenric Nugteren 1 год назад
Родитель
Сommit
3021bec6a7
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 1
      InABox.Core/Aggregate.cs
  2. 1 0
      inabox.database.sqlite/SQLiteProvider.cs

+ 2 - 1
InABox.Core/Aggregate.cs

@@ -70,7 +70,8 @@ namespace InABox.Core
         Count,
         Maximum,
         Minimum,
-        Average
+        Average,
+        Concat
     }
 
     public interface ICoreAggregate<TType, TProp>

+ 1 - 0
inabox.database.sqlite/SQLiteProvider.cs

@@ -1603,6 +1603,7 @@ namespace InABox.Database.SQLite
                 AggregateCalculation.Maximum => "MAX",
                 AggregateCalculation.Minimum => "MIN",
                 AggregateCalculation.Average => "AVERAGE",
+                AggregateCalculation.Concat => "GROUP_CONCAT",
                 _ => throw new Exception(string.Format("{0}.{1} is not a valid aggregate", columnname, attribute.Calculator.GetType().Name)),
             };
         }