What's the difference between the two?
With EntityState:
var registro = db.MinhaTabela.Where(a => a.MeuCampo == "Valor_Antigo").FirstOrDefault();
registro.MeuCampo = "Valor_Novo";
db.Entry(registro).State = EntityState.Modified;
db.SaveChanges();
Sem EntityState:
var registro = db.MinhaTabela.Where(a => a.MeuCampo == "Valor_Antigo").FirstOrDefault();
registro.MeuCampo = "Valor_Novo";
db.SaveChanges();
Does it seem like the two work the same thing or is it different?