摘要: 阻止并发下的产品超卖思路是利用redis串行处理数据,但又有高并发处理数据的能力 产品表(product) class Product { public int Id{get;set} //自增Id public string Name{get;set}//产品名称 public int Numbe 阅读全文
posted @ 2018-08-04 15:15 空明 阅读(312) 评论(0) 推荐(2) 编辑
摘要: 首先要添加一个引用:using system.Excel(似乎是这个) Excel.Application excel = new Excel.Application();excel.Application.Workbooks.Add(true); excel.Visible = true; for (int i = 0; i < this.dataGridView1.ColumnCount; i++) { excel.Cells[1, i + 1] = this.dataGridView1.Columns[i].HeaderText; } for (int i = 0; i < 阅读全文
posted @ 2012-01-17 21:53 空明 阅读(146) 评论(0) 推荐(0) 编辑