public void AddData(M_DownLoadServerData model) { SqlParameter[] commandParameters = new SqlParameter[] { new SqlParameter("@TypeId", SqlDbType.Int, 4), new SqlParameter("@DownLoadServerName", SqlDbType.NVarChar), new SqlParameter("@DownLoadServerDir", SqlDbType.NVarChar), new SqlParameter("@IsOpened", SqlDbType.Bit, 1), new SqlParameter("@IsOuter", SqlDbType.Int, 4), new SqlParameter("@UnionId", SqlDbType.Text), new SqlParameter("@DayDownNum", SqlDbType.Int, 4), new SqlParameter("@AllDownNum", SqlDbType.Int, 4), new SqlParameter("@AddTime", SqlDbType.DateTime), new SqlParameter("@DownLoadServerDataId", SqlDbType.Int, 4) }; commandParameters[0].Value = model.TypeId; commandParameters[1].Value = model.DownLoadServerName; commandParameters[2].Value = model.DownLoadServerDir; commandParameters[3].Value = model.IsOpened; commandParameters[4].Value = model.IsOuter; commandParameters[5].Value = model.UnionId; commandParameters[6].Value = model.DayDownNum; commandParameters[7].Value = model.AllDownNum; commandParameters[8].Value = model.AddTime; commandParameters[9].Value = model.DownLoadServerDataId; SqlHelper.ExecuteDataSet(SqlHelper.ConnectionStringKy, CommandType.StoredProcedure, "Up_DownLoadServerData_Set", commandParameters); }
public void UpdateData(M_DownLoadServerData model) { this.iDL.UpdateData(model); }
public void AddData(M_DownLoadServerData model) { this.iDL.AddData(model); }