public virtual void Update(AppConfig entity) { if (entity != null) { this.Context.Entry<AppConfig>(entity).State = EntityState.Modified; } }
public void Delete(AppConfig entity) { this.DbEntitySet.Remove(entity); }
public void Create(AppConfig entity) { this.DbEntitySet.Add(entity); }
public virtual void UpdateConfig(AppConfig per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("AppConfig"); } this._configStore.Update(per); this.Context.SaveChanges(); }
public virtual async Task UpdateAsync(AppConfig per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("AppConfig"); } this._configStore.Update(per); await this.Context.SaveChangesAsync(); }
public virtual int InsertConfig(AppConfig per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("AppConfig"); } this._configStore.Create(per); return this.Context.SaveChanges(); }