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