MCQs > IT & Programming > C# > Which of the following how you can use retrieve a single row with LINQ?

C# MCQs

Which of the following how you can use retrieve a single row with LINQ?

Answer

Correct Answer: Public User GetUser (string userName){ DBNameDataContext myDB = new DBNameDataContext ( ) ; User user = myDB. Users. Single ( u, u.UserName => userName ); Return user; }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it