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

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

    It exists in a specific namespace are you importing it?

    System.Data.DataTableExtensions.CopyToDataTable() 
    

    Also confirm the addition of this reference

    System.Data.DataSetExtensions 
    

提交回复
热议问题