In linq-to-sql which example (if either) would we expect to be more efficient/faster to evaluate? Do they compile to the same sql? Are there any other factors that I should consider when choosing between these examples?
(with DbContext context
)
context.Events
.Where(evt => evt.Date <= endDate && evt.Date > startDate);
or...
context.Events
.Where(evt => evt.Date <= endDate)
.Where(evt => evt.Date > startDate);