I have an error in my query using Entity Framework 6.0
I cannot calcule the difference between two dates.
You can see my following inner exception
FUNCTION MyDataBase.DiffDays does not exist
using (var ctx = new xxx_Context())
{
query = ctx.packagings
.Where(p => p.supplier == idSupplier)
.Select(p => new Order
{
description = p.description,
qty = DbFunctions.DiffDays(p.date, today).Value,
id = p.idpackaging
}).ToList();
}