public virtual void Delete(AppConfig per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("AppConfig"); } this.DbEntitySet.Remove(per); this.Context.SaveChanges(); }
public virtual async Task DeleteAsync(AppConfig per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("AppConfig"); } this.DbEntitySet.Remove(per); await this.Context.SaveChangesAsync(); }
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(); }