This is the answer!
var date = DateTime.Parse(query.DueTime);
var time = date.TimeOfDay;
entities = entities.Where(r => DbFunctions.CreateTime(r.DueTime.Hour, r.DueTime.Minute, r.DueTime.Second) == time);
More Related Contents:
- convert sql query into lambda expression [closed]
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method, and this method cannot be translated into a store expression
- Is there a good LINQ way to do a cartesian product?
- LINQ to SQL – Left Outer Join with multiple join conditions
- linq case statement
- LINQ to SQL multiple tables left outer join
- Equivalent of SQL ISNULL in LINQ?
- Distinct in Linq based on only one field of the table
- Could not find an implementation of the query pattern
- Wildcard search for LINQ
- Get an IDataReader from a typed List
- Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains() operator
- Entity Framework. Delete all rows in table
- Use linq to generate direct update without select
- Join and Include in Entity Framework
- How to make LINQ execute a (SQL) LIKE range search
- Calling a SQL User-defined function in a LINQ query
- Issues Doing a String Comparison in LINQ
- Convert SQL to LINQ Query [closed]
- Linq union usage?
- Difference Between Select and SelectMany
- Distinct by property of class with LINQ [duplicate]
- What’s the hardest or most misunderstood aspect of LINQ? [closed]
- C# – code to order by a property using the property name as a string [duplicate]
- LEFT JOIN in LINQ to entities?
- linq where list contains any in list
- Merge multiple Lists into one List with LINQ
- Using Linq with 2D array, Select not found
- Compare Two Lists Via One Property Using LINQ
- How does PredicateBuilder work