.DefaultIfEmpty
Sample
1 | var query = |
DefaultIfEmpty is only useful if you provide a default object. in this case that is used here, if there are no programs, then ‘program’ will be null, and program.IsDeleted will throw exception.
Sample
1 | var query = |
DefaultIfEmpty is only useful if you provide a default object. in this case that is used here, if there are no programs, then ‘program’ will be null, and program.IsDeleted will throw exception.