public void Update(DatabaseOption obj) { using (InsightEntities db = new InsightEntities()) { db.DatabaseOptions.Attach(obj); db.Entry(obj).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); } }
public void Update(InstanceDetail obj) { using (InsightEntities db = new InsightEntities()) { db.InstanceDetails.Attach(obj); db.Entry(obj).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); } }