6
I am using Entity Framework, and I have a condition that has not worked very well:
.Where(x => ((DateTime.Now - (x.DataInicio.Value == null ? DateTime.Now : x.DataInicio.Value)).TotalMinutes) < x.Item.MinutosMaximo)
Types:
x.DataInicio.Value: DateTime?
((...).TotalMinutes): Double
x.Item.MinutosMaximo: int
The error returned is:
Dbarithmeticexpression arguments must have a common numeric type. Cannot cast and convert to repository.
I just forgot to paste here... Edited question.
– Jedaias Rodrigues