linq to sql lambda - not in where 条件的语法

linq to sql lambda - syntax for not in where condition

我想使用'!'在我的 .Where.

中排除以下记录

语法是什么?

// where do I put the ! to get the syntax correct
.Where(p => p.StartDate >= startDate && p.EndDate <= DateTime.Now.Date)
.Where(p => !(p.StartDate >= startDate && p.EndDate <= DateTime.Now.Date))

.Where(p => p.StartDate < startDate || p.EndDate > DateTime.Now.Date)