Exemple #1
0
        public M_Pub_Excel GetModelFromReader(DbDataReader rdr)
        {
            M_Pub_Excel model = new M_Pub_Excel();

            model.ID         = Convert.ToInt32(rdr["ID"]);
            model.TableName  = rdr["TableName"].ToString();
            model.CNames     = rdr["CNames"].ToString();
            model.Fields     = rdr["Fields"].ToString();
            model.UserID     = Convert.ToInt32(rdr["UserID"]);
            model.CreateTime = Convert.ToDateTime(rdr["CreateTime"]);
            rdr.Close();
            return(model);
        }
Exemple #2
0
        public override SqlParameter[] GetParameters()
        {
            M_Pub_Excel model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.TableName;
            sp[2].Value = model.CNames;
            sp[3].Value = model.Fields;
            sp[4].Value = model.UserID;
            sp[5].Value = model.CreateTime;
            return(sp);
        }