I am getting error while using EntityFunctions.DiffMinutes() with MySQL. Below is my code
return db.DiscoveredDevices.Where(m => EntityFunctions.DiffMinutes((DateTime)m.
The DiffMinutes function doesn't exist in MySQL, just create it and will work:
CREATE FUNCTION `DiffMinutes`(timeValue1 datetime, timevalue2 datetime) RETURNS int(11) DETERMINISTIC BEGIN RETURN TIMESTAMPDIFF(MINUTE, timeValue1, timevalue2); END