Esempio n. 1
0
 public static int UserFinanceLogAdd(Model.UserFinanceLog userfinanceLog)
 {
     SqlParameter[] pars = new SqlParameter[] { new SqlParameter("@UID", SqlDbType.Int), new SqlParameter("@FinanceType", SqlDbType.Int), new SqlParameter("@Amount", SqlDbType.Money), new SqlParameter("@FinanceInfo", SqlDbType.VarChar, 500), new SqlParameter("@IsState", SqlDbType.Int) };
     pars[0].Value = userfinanceLog.UID;
     pars[1].Value = userfinanceLog.FinanceType;
     pars[2].Value = userfinanceLog.Amount;
     pars[3].Value = userfinanceLog.FinanceInfo;
     pars[4].Value = userfinanceLog.IsState;
     return(SqlHelper.ExecuteProcess("pro_UserFinanceLog_Add", pars));
 }
 public static int UserFinanceLogAdd(Model.UserFinanceLog userfinanceLog)
 {
     return(DAL.UserFinanceLog.UserFinanceLogAdd(userfinanceLog));
 }