I get into LinqToSql and use the NerdDinner tutorial.
I am trying to understand the syntax and would like to describe in more detail what happens on the first line that works.
Question: How to write the first request, for example, as commented code (which does not work).
public Dinner GetDinner(int id){ var result = db.Dinners.SingleOrDefault(d => d.DinnerID == id);
Greetings
Dave
source share