0 Project.
I have property
public string UserName { get; set; }
can i set this property to retrieve user name using linq statement?
from u in context.Users
where u.UserID==session["UserID"]
select u.UserName
something like this
public string UserName { get value;
set from u in context.Users
where u.UserID==session["UserID"]
select u.UserName; }
Try