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