3

I have a Handler and I am trying to perform LINQ operations. However I cannot. Is it possible to do this in .ASHX files?

using (UserDataContext userDataContext = new UserDataContext)
{
    User user = userDataContext.Users.Single -- Does not show up as an option in intellisense.
}

Thanks

4

1 回答 1

2

是否添加了导入?

using System.Linq;
于 2011-01-18T08:52:31.087 回答