Reputation: 1607
when there's no rows returned from the database. Will I always get a List object of Count = 0. Will there ever be a case where the List = null?
Upvotes: 2
Views: 538
Reputation: 76570
The list will never be null
. LINQ operations are fluent, hence having a list returning null can break chains of operations.
Upvotes: 2
Reputation: 1039378
You will always get an empty list and never null if there are no rows.
Upvotes: 1