total = query.Select(l => l.Price).DefaultIfEmpty(0m).Sum();
// Exceptions:
// System.ArgumentNullException:
// source is null.
total = (from tb in query select tb.Price).Any() ? (from tb in query select tb.Price).Sum() : 0;
或者
total = query.Select(l => l.Price).DefaultIfEmpty(0m).Sum();