Is there any hidden subtlety, is one perferred, or is one just a shorter way to write the other?
Client = db.Clients.First(c=>c.Name == "Client 1")
and
Client = db.Clients.Where(c=>c.Name == "Client 1").First()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes they are equiv.
Simple test it to add them to LINQPad and view the generated Sql statements and on my database I get the exact same Queries generated.
Update :
Below is example of the queries I get against my db.