Click here to Skip to main content
15,846,342 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi want to return Column value using Linq query but unable to retrive

Query is

from prop in ctx.tx_ proposal select prop.proposalname


As in Sql

select name from Emp


please tell the answer
Posted
Updated 13-Jan-11 5:44am
v2

1 solution

What are you selecting it into?

C#
var propName = from prop in ctx.tx_ proposal select prop.proposalname
 
Share this answer
 
Comments
#realJSOP 13-Jan-11 11:00am    
Watch him ask you how to convert it to a string...
Henry Minute 13-Jan-11 11:01am    
@JSOP I wish I could up-vote comments. :))

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