brightline 0 Junior Poster in Training

I am trying to write the following code:

query = dtdatacontext.storedprocedure1();
DataTable bindingTable = query.CopyToDataTable();

But I can not find the CopyToDataTable() method.
is there any usings should I use or what?

Thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.