Why am I not getting .CopyToDataTable() in Linq Query()

前端 未结 7 1050
既然无缘
既然无缘 2020-12-11 02:22

This following code example is borrowed from MSDN here. I am not getting query.CopyToDataTable() available in my code. (see the commented line in my following code).

7条回答
  •  [愿得一人]
    2020-12-11 03:11

    This issue for me was caused by using Dotnet Core 2.0, which appears to have no way to turn an IEnumerable back into a DataTable after it's converted.

    Just adding this for anyone that comes across this question with the same issue.

提交回复
热议问题