public static DbInt Sum(this DbFunctions dbFunctions, DbInt value)
 {
     return(new DbIntFunctionValue("sum", new[] { value }));
 }
 public static DbInt Coalesce(this DbFunctions dbFunctions, DbInt value, params IDbFragment[] other)
 {
     return(new DbIntFunctionValue("coalesce", new[] { value }.Concat(other)));
 }
 public static DbInt Max(this DbFunctions dbFunctions, DbInt value)
 {
     return(new DbIntFunctionValue("max", new[] { value }));
 }
 public static DbInt Average(this DbFunctions dbFunctions, DbInt value)
 {
     return(new DbIntFunctionValue("avg", new[] { value }));
 }
 public static DbString Replicate(this DbFunctions dbFunctions, DbString dbString, DbInt length)
 => new DbStringFunctionValue("replicate", new IDbFragment[] { dbString, length });
 public static DbInt IIf(this DbFunctions dbFunctions, DbBool condition, DbInt trueValue, DbInt falseValue)
 => new DbIntFunctionValue("iif", new IDbFragment[] { condition, trueValue, falseValue });