UWP 中的 DataTable class 在哪里?

Where is DataTable class in UWP?

我知道 WinRT 中缺少 System.Data 命名空间,因此我从未提出过基于 DataTable 或 DataSet 进行 WinRT 编程的希望。现在我在 UWP 中看到了 System.Data(和 System.Data.Common)命名空间,但永远找不到 DataTable 或 DataSet。或者,我是否遗漏了什么,或者需要不同的命名空间?

更具体地说,如果我过去使用了System.Data.DataTableMicrosoft.Office.Interop.Excel.DataTable,会发生什么我需要做些什么才能将旧代码迁移到 UWP?

UWP 中不存在该数据表。您应该考虑使用 EF7 进行数据访问。您将无法从 UWP 应用程序自动化 excel。 Syncfusion 有一个用于与 excel.

交互的 XlsIo 库

https://ef.readthedocs.org/en/latest/getting-started/uwp.html

http://www.syncfusion.com/products/file-formats/xlsio

查看社区许可证

http://www.syncfusion.com/products/communitylicense