public M_Answer_Recode GetModelFromReader(SqlDataReader rdr) { M_Answer_Recode model = new M_Answer_Recode(); model.Rid = ConvertToInt(rdr["Rid"]); model.Sid = ConvertToInt(rdr["Sid"]); model.Userid = ConvertToInt(rdr["Userid"]); model.Submitip = ConverToStr(rdr["Submitip"]); model.Submitdate = ConvertToDate(rdr["Submitdate"]); model.Status = ConvertToInt(rdr["Status"]); rdr.Close(); rdr.Dispose(); return(model); }
public override SqlParameter[] GetParameters() { M_Answer_Recode model = this; SqlParameter[] sp = GetSP(); //sp[0].Value = model.AnswerID; sp[0].Value = model.Rid; sp[1].Value = model.Sid; sp[2].Value = model.Userid; sp[3].Value = model.Submitip; sp[5].Value = model.Submitdate; sp[6].Value = model.Status; return(sp); }