Esempio n. 1
0
        /// <summary>
        /// 将指定列的值置为指定值
        /// </summary>
        /// <param name="ColName">列名</param>
        /// <param name="Value">值</param>
        /// <returns>是否设置成功</returns>
        public int SetColValue(string ColName, DBValue Value)
        {
            ColValuePair Pair = GetCol(ColName);

            if (Pair == null)
            {
                return(0);
            }

            Pair.Value = Value;

            return(1);
        }
Esempio n. 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="Col">对应的列</param>
 public ColValuePair(DBCol Col)
 {
     this.Col   = Col;
     this.Value = DBValue.NoSet;
 }