示例#1
0
 private IEnumerable<ExcelRow> GetAllExcelRows()
 {
     OrderSystem.DAL.OrderSystem db = new OrderSystem.DAL.OrderSystem();
     var excelRows = from d in db.ExcelRow
                     select d;
     return excelRows;
 }
示例#2
0
 private void UploadExcelRowEnumerableToDB(IEnumerable<ExcelRow> enumerable)
 {
     OrderSystem.DAL.OrderSystem db = new OrderSystem.DAL.OrderSystem();
     foreach (ExcelRow row in enumerable) {
         db.ExcelRow.Add(row);
     }
     db.SaveChanges();
 }