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