Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to convert a query of entity framework to a datatable in order to use Crystal Reports. Seems that CR doesn't allow nullable datatypes, therefore any nullable EF properties cannot be shown on the Report which doesn't work for our needs. So, we need to go back to passing in a datatable as the DataSource to the Crystal Report.
Posted

try this link , it will help you out to generate your output you are looking for.

http://www.c-sharpcorner.com/UploadFile/VIMAL.LAKHERA/LINQResultsetToDatatable06242008042629AM/LINQResultsetToDatatable.aspx[^]

Hope this will help !!!
 
Share this answer
 
Check this tip and trick it does exactly what you want.

"http://www.codeproject.com/Tips/171006/Convert-LINQ-to-Entity-Result-to-a-DataTable.aspx"
 
Share this answer
 

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