public static SqlExpression MathCos(
     [Type(typeof(double))] SqlExpression d)
 {
     return(SqlDml.Cos(d));
 }