I have a linq Query which works well.
var data = from c in context.C
where c.ID == 1
select new
{
cc = c.CC,
oc= c.OC,
ec = c.EC
};
I wish to load the information from this query to my datatable.
If there is an option of doing it without extending any method I’d be very happy to hear them but any help would be appreciated.
Regards,
David
OK I believe I found it:
adding an extension method:
Now to use it :