In your last example:
var latestCust = db.Customers
.OrderByDescending(x=> x.CreatedOn)
.FirstOrDefault();//Single or First, or doesn't matter?
Yes it does. If you try to use SingleOrDefault()
and the query results in more than record you would get and exception. The only time you can safely use SingleOrDefault()
is when you are expecting only 1 and only 1 result...