How to update only one field using Entity Framework ?
using (var db = new context())
{
db.table.Attach(user);
db.Entry(model).Property(x => x.column).IsModified = true;
db.SaveChanges();
}
using (var db = new context())
{
db.table.Attach(user);
db.Entry(model).Property(x => x.column).IsModified = true;
db.SaveChanges();
}