EntityFunctions absolute value
entity-framework
Solution
Try:
var a = dbContext.Where(x => Math.Abs(EntityFunctions.DiffMinutes(dateA,dateB)) < 1);
Problem
I am using EntityFunctions class in my LINQ query as: ``` var a = dbContext.Where(x=>EntityFunctions.DiffMinutes(dateA,dateB)<1) ``` However I want an absolute value of the difference, so that I do not have to worry which date is greater. Can anyone suggest how to do it.