public override SqlParameter[] GetParameters() { M_MoneyManage model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.Money_code; sp[1].Value = model.Money_descp; sp[2].Value = model.Money_sign; sp[3].Value = model.Money_rate; sp[4].Value = model.Is_flag; return(sp); }
public M_MoneyManage GetModelFromReader(DbDataReader rdr) { M_MoneyManage model = new M_MoneyManage(); model.Flow = Convert.ToInt32(rdr["Flow"]); model.Money_code = rdr["Money_code"].ToString(); model.Money_descp = rdr["Money_descp"].ToString(); model.Money_sign = rdr["Money_sign"].ToString(); model.Money_rate = ConverToDec(rdr["Money_rate"]); model.Is_flag = rdr["Is_flag"].ToString(); rdr.Close(); rdr.Dispose(); return(model); }