Beispiel #1
0
        /// <summary>
        /// 为列设置属性
        /// </summary>
        /// <param name="ColName">列</param>
        /// <param name="Propertys">属性</param>
        /// <returns></returns>
        public int SetColProperty(string ColName, params EnumDBColProperty[] Propertys)
        {
            ColValuePair Pair = GetCol(ColName);

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

            Pair.Col.SetProperty(Propertys);

            return(1);
        }
Beispiel #2
0
        /// <summary>
        /// 将指定列的值置为指定值
        /// </summary>
        /// <param name="ColName"></param>
        /// <param name="Value"></param>
        /// <returns></returns>
        public int SetColValue(string ColName, string Value)
        {
            ColValuePair Pair = GetCol(ColName);

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

            Pair.Value = new DBValue(Value);

            return(1);
        }
Beispiel #3
0
        /// <summary>
        /// 为列设置属性
        /// </summary>
        /// <param name="ColName">列</param>
        /// <param name="Propertys">属性</param>
        /// <returns></returns>
        public int SetColProperty(EnumDBColProperty Property, params string[] ColNames)
        {
            foreach (string ColName in ColNames)
            {
                ColValuePair Pair = GetCol(ColName);

                if (Pair == null)
                {
                    continue;
                }

                Pair.Col.SetProperty(Property);
            }

            return(1);
        }