Esempio n. 1
0
 public virtual void Delete(AppConfig per)
 {
     this.ThrowIfDisposed();
     if (per == null)
     {
         throw new ArgumentNullException("AppConfig");
     }
     this.DbEntitySet.Remove(per);
     this.Context.SaveChanges();
 }
Esempio n. 2
0
 public virtual async Task DeleteAsync(AppConfig per)
 {
     this.ThrowIfDisposed();
     if (per == null)
     {
         throw new ArgumentNullException("AppConfig");
     }
     this.DbEntitySet.Remove(per);
     await this.Context.SaveChangesAsync();
 }
Esempio n. 3
0
 public virtual void Update(AppConfig per)
 {
     this.ThrowIfDisposed();
     if (per == null)
     {
         throw new ArgumentNullException("AppConfig");
     }
     if (per != null)
     {
         this.Context.Entry<AppConfig>(per).State = EntityState.Modified;
     }
     this.Context.SaveChanges();
 }