These operators enable you to return the fi rst or the last element in a specifi c sequence of objects.
Just as with the Single method, First and Last throw an error when the collection is empty,
whereas the other two operators return the default value for the relevant data types.
In contrast to Single, the First, FirstOrDefault, Last, and LastOrDefault operators don’t
throw an exception when the query returns more than one item. They simply return the fi rst item in
the result set.
The Last and LastOrDefault queries are not supported in EF. However, you can easily accomplish
the same behavior with First and a descending sort order. The following code snippet shows how
to retrieve the oldest (the one with the lowest ID) and the most recent review from the database