Hello developers I have a problem turns out that I am doing an update in linQ and for it I have to compare two data so that the update is correct (since one of these data is repeated in my table) but it turns out that linq does not let me compare with & & amp; some idea of how to do it here is the code
var count = progSemanal.Where(w => w.Codigo_barra.ToString().ToLower() == codmodel.ToString().ToLower()) && progSemanal.Where(t => t.Fecha == DbFunctions.TruncateTime(f2)).Count();//Count para update cod barra
if (count > 0)
{//Actualiza }else // inserta
The error that appears is this I can not apply operand & & Iqueriable and int CodModel is a whole code and date is datetime format