I am getting error while using EntityFunctions.DiffMinutes() with MySQL. Below is my code
return db.DiscoveredDevices.Where(m => EntityFunctions.DiffMinutes((DateTime)m.
I think maybe MySQL doesn't implement that Function...
you can use the other way like this:
DateTime begin = DateTime.Now - pollTime;
DateTime end = DateTime.Now + pollTime;
var result = (from s in db.DiscoveredDevices where s.LastPollTime > begin && s.LastPollTime < end && && s.Status == true select s).ToList();
return result;