What I want to do is a simple update of a record of my table and in this case I want to do it with linq but at the moment when it arrives at that piece of code it does not mark me any mistake and executes all the lines but it does not I update the record:
Update current code:
clasexxx vehiculo = (from conf in context.xxx
where conf.xxx.Equals(config.xxx)
select new clasexxx()
{
xxx = conf.xxx,
}).First();
vehiculo.Idioma = config.Idioma;
context.SaveChanges();
return retorno;
I can now make insertions of my registration but I want that when the school id does not come back to add but simply update the one that already exists.