예제 #1
0
        public static string DbUpdateInt(string col, string value)
        {
            StringBuilder sb = new StringBuilder();

            if (TypeMisc.IsTextAllowed(value))
            {
                sb.Append(" ");
                sb.Append(col);
                sb.Append(" = ");
                sb.Append(value);
                sb.Append(",");
                return(sb.ToString());
            }
            return(null);
        }
예제 #2
0
        public static string DbUpdateCur(string col, string value)
        {
            StringBuilder sb   = new StringBuilder();
            string        conv = value.Replace(",", "");

            if (TypeMisc.IsTextAllowed(conv))
            {
                sb.Append(" ");
                sb.Append(col);
                sb.Append(" = ");
                sb.Append(conv);
                sb.Append(",");
                return(sb.ToString());
            }
            return(null);
        }