I am using Entity Framework Code First. Using LINQ to Entity I want to grab a record based on a DateTime value. Here is my current code:
///
I didn't remove the reference System.Data.Entity, I just changed the call from DbFunctions.TruncateTime to System.Data.Entity.DbFunctions.TruncateTime and it worked for me.
System.Data.Entity
DbFunctions.TruncateTime
System.Data.Entity.DbFunctions.TruncateTime
I'm using Entity 6.