Which Of The Following Sample Code Is Used To Retrieve Single #458
Which of the following sample code is used to retrieve single row at a time?
This multiple choice question (MCQ) is related to the book/course gs gs116 Microsoft SQL Server. It can also be found in gs gs116 Data Connectivity - LINQ - Quiz No.2.
Which of the following sample code is used to retrieve single row at a time?
public User GetUser(string userName) { DBNameDataContext myDB = new DBNameDataContext(); User user = myDB.Users.Single(u, u.UserName=>userName); return user; } ?
public User GetUser(string userName) { DBNameDataContext myDB = new DBNameDataContext(); User user = myDB.Users.One(u, u.UserName=>userName); return user; } ?
public User GetUser(string userName) { DBNameDataContext myDB = new DBNameDataContext(); User user = myDB.Users.findOne(u, u.UserName=>userName); return user; } ?
All of the mentioned
Similar question(s) are as followings:
Online Quizzes of gs116 Microsoft SQL Server
Developing with SQL Server - Error Handling - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes
Laying the Foundation - Aggregation of Data - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes
Laying the Foundation - Joins in SQL Server - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes
Laying the Foundation - Views in SQL Server - Quiz No.1
gs gs116 Microsoft SQL Server
Online Quizzes