Reading data from Excel sheet using entity framework

前端 未结 4 652
既然无缘
既然无缘 2021-01-14 04:40

We have some info that is contained within an excel sheet. the excel sheet contains two columns; customer name + customer balance. Now I need to display this info inside my

相关标签:
4条回答
  • 2021-01-14 05:07

    Excel is not a database system so don't think directly you can use the entity framework. But yes Excel can be read using .net APIs

    0 讨论(0)
  • 2021-01-14 05:07

    It is better to extract the data from the excel sheet and add it to Datable which you can do using oledbconnection object , connectionobject.GetOleDbSchemaTable.

    0 讨论(0)
  • 2021-01-14 05:13

    FileContextCore seems like an effort to make excel and other file types work in EF Core. Obviously this can be nice for consistency if you're already using EF Core.

    0 讨论(0)
  • 2021-01-14 05:17

    You can use LinqToExcel , this provides normal linq structure to query excel sheets

    0 讨论(0)
提交回复
热议问题