Categories
c# entity-framework linq sql

Query Todays record in Entity Framework

How do i only get todays record in my EF below. I tried below but no luck:

 List<VacancyBasket> VacancyBasket = bModel.VacancyBaskets
.Where(b => b.BasketID == teacherGuid && b.Created == DateTime.Now)
.ToList();

I am getting Exception:

The specified type member ‘Date’ is not supported in LINQ to Entities.
Only initializers, entity members, and entity navigation properties
are supported.