示例#1
0
        public static Unescaped String(object value)
        {
            Unescaped retVal = new Unescaped("NULL");

            if (value != null)
            {
                retVal = new Unescaped(value.ToString());
            }
            return(retVal);
        }
示例#2
0
 public static Unescaped MySQLQuotedTimeOnly(DateTime dt)
 {
     return(Unescaped.String(String.Format("'{0:HH:mm:ss}'", dt)));
 }
示例#3
0
 public static Unescaped MySQLQuotedDateOnly(DateTime dt)
 {
     return(Unescaped.String(String.Format("'{0:yyyy-MM-dd}'", dt)));
 }