public DatabaseOption Insert(DatabaseOption obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.DatabaseOptions.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
 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 LoginMembership Insert(LoginMembership obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.LoginMembership.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
 public void Delete(DatabaseOption obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.DatabaseOptions.Attach(obj);
         db.DatabaseOptions.Remove(obj);
         db.SaveChanges();
     }
 }
Ejemplo n.º 5
0
 public void Delete(JobLog obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.JobLogs.Attach(obj);
         db.JobLogs.Remove(obj);
         db.SaveChanges();
     }
 }
Ejemplo n.º 6
0
 public JobLog Insert(JobLog obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.JobLogs.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
Ejemplo n.º 7
0
 public void Delete(Drive obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.Drives.Attach(obj);
         db.Drives.Remove(obj);
         db.SaveChanges();
     }
 }
Ejemplo n.º 8
0
 public Drive Insert(Drive obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.Drives.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
 public Instance Insert(Instance obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.Instances.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
Ejemplo n.º 10
0
 public LogSize Insert(LogSize obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.LogSize.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
 public Backup Insert(Backup obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.Backups.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }
 public void Delete(Backup obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.Backups.Attach(obj);
         db.Backups.Remove(obj);
         db.SaveChanges();
     }
 }
Ejemplo n.º 13
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();
     }
 }
Ejemplo n.º 14
0
 public void Delete(InstanceDetail obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.InstanceDetails.Attach(obj);
         db.InstanceDetails.Remove(obj);
         db.SaveChanges();
     }
 }
 public DatabaseSize Insert(DatabaseSize obj)
 {
     using (InsightEntities db = new InsightEntities())
     {
         db.DatabaseSize.Add(obj);
         db.SaveChanges();
         return(obj);
     }
 }