public static AggregateFunction? GetAggregateFunctionAttribute(this MemberInfo info)
{
var aggregateFunction = info.GetCustomAttributes(true).OfType<AggregateFunctionAttribute>().FirstOrDefault();
if (aggregateFunction == null) return null;
return aggregateFunction.AggregateFunction;
}