Example #1
0
        public override SqlParameter[] GetParameters()
        {
            M_Content_WordChain model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.KeyWord;
            sp[2].Value = model.KeyValue;
            sp[3].Value = model.Priority;
            sp[4].Value = model.Regex;
            sp[5].Value = model.RegexValue;
            return(sp);
        }
Example #2
0
        public M_Content_WordChain GetModelFromReader(DbDataReader rdr)
        {
            M_Content_WordChain model = new M_Content_WordChain();

            model.ID         = Convert.ToInt32(rdr["ID"]);
            model.KeyWord    = ConverToStr(rdr["KeyWord"]);
            model.KeyValue   = ConverToStr(rdr["KeyValue"]);
            model.Priority   = ConvertToInt(rdr["Priority"]);
            model.Regex      = ConverToStr(rdr["Regex"]);
            model.RegexValue = ConverToStr(rdr["RegexValue"]);
            rdr.Close();
            rdr.Dispose();
            return(model);
        }