I have to OrderBy and Filter by TotalTime - computed value between Finish and Start. Previously, with MS SQL I was using
records = records.OrderByDescending(o => (o.LastRunStart != null) ? EntityFunctions.DiffMilliseconds(o.LastRunFinish ?? DateTime.UtcNow, (DateTime)o.LastRunStart) : 0);
But with MySql it is not working. Is there any useful method in EF for MySql that can by used in select?