views:

22

answers:

2

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?

+1  A: 

You will always get an empty list and never null if there are no rows.

Darin Dimitrov
+2  A: 

The list will never be null. LINQ operations are fluent, hence having a list returning null can break chains of operations.

Igor Zevaka