adplus-dvertising
frame-decoration

Question

The following code is used will perform _________ operation in LINQ.
public bool IsValidUser(string userName, string passWord)
{
       DBNameDataContext myDB = NEW DBNameDataContext();
       List<User> users = myDB.Users.Where(u => u.Username == userName && u.Password==passWord);
       IF(users.Count>0)
       {
             RETURN TRUE;
       }
       RETURN FALSE;
}

a.

update

b.

select

c.

insert

d.

All of the mentioned

Posted under SQL Server

Answer: (b).select

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The following code is used will perform _________ operation in LINQ.

Similar Questions

Discover Related MCQs

Q. Which of the following sample code is used to select data Using LinQ To SQL?

Q. Which of the following code snippet would traverse through all result objects ?

Q. LINQ to SQL is considered to be one of Microsoft’s _______ products.

Q. LINQ to SQL in SQL Server fully supports ____________

Q. Point out the wrong statement.

Q. LINQ to Entities applications requires __________ mapping provider.

Q. The ______ pre-compiler translates embedded SQL into calls to the Oracle runtime library.

Q. Point out the correct statement.

Q. DataContext object is constructed in LINQ to SQL using _____________

Q. Which of the following code will retrieve all products in the Beverages category sorted by product name?

Q. Which of the following sample code is used to retrieve single row at a time?

Q. Which of the following method is used to delete records in LINQ?

Q. Which of the following code in LINQ performs functionality similar to joins in SQL?

Q. Service broker was added to SQL Server ___________

Q. Point out the correct statement.

Q. There are _________ components of the Service broker in SQL Server.

Q. Which of the following service broker component defines the infrastructure used for exchanging messages between instances?

Q. Point out the wrong statement.

Q. Service Broker also provides security by preventing __________ access from networks and by message encryption.

Q. (SSBS) is a new architecture which allows you to write ____________ message based application.