private void setAggregateFunc(string columnName, ColumnAttributes colDef, Type type)
{
if (setColumnAggregateFunc(columnName, colDef)) return;
if (_conventions == null || _conventions.TypesAggregateFunctions == null || type == null) return;
var func = _conventions.TypesAggregateFunctions.FirstOrDefault(x => x.Key == type);
if (func.Value != null)
{
colDef.AggregateFunction = func.Value;
}
}