public M_Plat_TaskMsg GetModelFromReader(DbDataReader rdr) { M_Plat_TaskMsg model = new M_Plat_TaskMsg(); model.ID = Convert.ToInt32(rdr["ID"]); model.TaskID = Convert.ToInt32(rdr["TaskID"]); model.MsgContent = rdr["MsgContent"].ToString(); model.MsgType = Convert.ToInt32(rdr["MsgType"]); model.CreateTime = Convert.ToDateTime(rdr["CreateTime"]); model.UserID = Convert.ToInt32(rdr["UserID"]); model.UserName = rdr["UserName"].ToString(); model.Status = Convert.ToInt32(rdr["Status"]); model.Attach = rdr["Attach"].ToString(); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_Plat_TaskMsg model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.TaskID; sp[2].Value = model.MsgContent; sp[3].Value = model.MsgType; sp[4].Value = model.CreateTime; sp[5].Value = model.UserID; sp[6].Value = model.UserName; sp[7].Value = model.Status; sp[8].Value = model.Attach; return(sp); }