public M_Sensitivity GetModelFromReader(DbDataReader rdr) { M_Sensitivity model = new M_Sensitivity(); model.id = Convert.ToInt32(rdr["id"]); model.keyname = ConverToStr(rdr["keyname"]); model.istrue = ConvertToInt(rdr["istrue"]); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_Sensitivity model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.id; sp[1].Value = model.keyname; sp[2].Value = model.istrue; return(sp); }