I have a date field (DateTime) and also a field of type integer. I need to make the difference between this date field and today's date (DateTime.Now) and compare if it is larger or smaller than my integer field. I made and gives this error.
Oprerator '>' cannot be applied to operands of type 'System.TimeSpan' and 'int'
This is my expression:
var atendimento = db.T_CRM_StatusPDV
.Where(dt => (dt.DT_TransacaoV - DateTime.Now) > dt.DE_FrequenciaTrans)