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();
     }
 }
Exemple #2
0
 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();
     }
 }