Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

Please let me know is that possible in linq that we can return dataset .
Thanks & Regard

Hans raj
Posted

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave over half a million results: Google: "How to return dataset using linq"[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
Share this answer
 
Comments
Thanks7872 19-Aug-15 5:10am    
Such questions keep getting answers,so they will never stop posting them. Example is below this solution.
OriginalGriff 19-Aug-15 5:24am    
And I will continue to try to embarrass them into at least trying to search for themselves! :laugh:
Create your own method or find code to convert List<t> to DataTable (Example[^])
You can simply create DataSet from tatables.
refer :
How to: Implement CopyToDataTable<t> Where the Generic Type T Is Not a DataRow[^]
Creating a DataTable From a Query (LINQ to DataSet)[^]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900