I have a query in ASP Razor EF Core which runs ok:

```
Model.Bookings.Where(x => x.DateOfVisit > DateTime.Now.AddYears(-1) && x.DateOfVisit < DateTime.Now).Count() > 10

```

I have realised that I need the query to be 'greater than or equal to' and 'less than or equal to' but when I change the code to this:

```
Model.Bookings.Where(x => x.DateOfVisit >= DateTime.Now.AddYears(-1) && x.DateOfVisit =< DateTime.Now).Count() > 10

```

I get 2 errors - one for **invald expression term '<'** and the other for **Operator '&&' cannot be applied to operands of type 'bool' and 'DateTime**

I've done these types of queries in SQL many times but I can't see why it won't let me use this logic/format. I've been Googling for over an hour but I can't see why it wont work - please will somone put me out of my misery?