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

前端 未结 7 1049
既然无缘
既然无缘 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:12

    Navigating further into MSDN online brings me to this page: http://msdn.microsoft.com/en-us/library/system.data.datatableextensions.aspx

    It says its in the System.Data namespace (using System.Data) and you need to reference the System.Data.DataSetExtensions.dll.

提交回复
热议问题