I have the following simple LINQ to SQL statement:
string strUserID = Eval("whoInsert").ToString();
insLusHmoobDataContext userDataContext = new insLusHmoobDataContext();
var userName = from usr in userDataContext.Users
where usr.UserId.Equals(strUserID)
select usr.UserName;
return userName.ToString();
Instead of showing me UserNamefrom a table aspnet_Users, he showed me an SQL select statement. Any idea?
Mark s
source
share