Info
Version: | 1.0.0 |
Author(s): | Smith |
Last Update: | Saturday, May 7, 2016 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/excellupload |
Install
Install-Package excellupload
dotnet add package excellupload
paket add excellupload
excellupload Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
using ExcelUpload;
using ExcelUpload.Abstract;
[HttpPost]
public ActionResult Upload(HttpPostedFileBase file) {
List<IPTable> PTableList = new List<IPTable>();
PTableList.Add(new PTable<Sedan>());
PTableList.Add(new PTable<Order>());
ExcellReader er = new ExcellReader();
er.ReadExcelContent(file, PTableList);
List<Sedan> Sedans = (List<Sedan>)PTableList[0].GetDataList;
List<Order> Orders = (List<Order>)PTableList[1].GetDataList;
...
.