Example #1
0
 public virtual void Delete(AppConfig per)
 {
     this.ThrowIfDisposed();
     if (per == null)
     {
         throw new ArgumentNullException("AppConfig");
     }
     this.DbEntitySet.Remove(per);
     this.Context.SaveChanges();
 }
Example #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();
 }
Example #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();
 }