Using Linq in .NET Handlers

I have a handler and I'm trying to execute LINQ operations. However, I canโ€™t. 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.
}

thank

+3
source share
1 answer

Have you added import?

using System.Linq;
+2
source

Source: https://habr.com/ru/post/1786097/


All Articles