Click here to Skip to main content
15,922,584 members
Articles / Programming Languages / C#

Convert Linq Query Result To DataTable

Rate me:
Please Sign up or sign in to vote.
4.67/5 (3 votes)
5 Apr 2010CPOL 43.1K   7  
Sometimes you need the Linq query result as datatable (I need it today)Use this: public DataTable ToDataTable(System.Data.Linq.DataContext ctx, object query) { if (query == null) { throw new ArgumentNullException("query"); ...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer KATAKIT
Syrian Arab Republic Syrian Arab Republic
I never done anything before

Comments and Discussions