public void Add(M_DownLoadAddress model) { SqlParameter[] commandParameters = new SqlParameter[] { new SqlParameter("@DownLoadDataId", SqlDbType.Int, 4), new SqlParameter("@AddressNum", SqlDbType.Int, 4), new SqlParameter("@DownLoadServerID", SqlDbType.Int, 4), new SqlParameter("@AddressName", SqlDbType.NVarChar), new SqlParameter("@AddressPath", SqlDbType.NVarChar), new SqlParameter("@AddressId", SqlDbType.Int, 4) }; commandParameters[0].Value = model.DownLoadDataId; commandParameters[1].Value = model.AddressNum; commandParameters[2].Value = model.DownLoadServerID; commandParameters[3].Value = model.AddressName; commandParameters[4].Value = model.AddressPath; commandParameters[5].Value = model.AddressId; SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringKy, CommandType.StoredProcedure, "Up_DownLoadAddress_Set", commandParameters); }
public void Update(M_DownLoadAddress model) { this.IDLA.Update(model); }
public void Add(M_DownLoadAddress model) { this.IDLA.Add(model); }
public void Update(M_DownLoadAddress model) { this.Add(model); }