Click here to Skip to main content
15,883,855 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i select with entity framework like below

var query=from obj in context.objs
where textbox.text == obj.property
select new {obj.property1,obj.property2 } ;
query.ToList();


now i want to save query in a string variable or show with messagebox,,,please help me
Posted
Comments
[no name] 13-Jul-14 7:36am    
And what seems to be the trouble?

1 solution

You can't. There's no way to convert that query to a string.

What are you trying to do with this?
 
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