public virtual void Detach(IoTClient per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("IdentityClient"); } this.Context.Entry<IoTClient>(per).State = EntityState.Detached; }
private void SupportDelete(IoTClient grp) { this.ThrowIfDisposed(); if (grp == null) { throw new ArgumentNullException("IdentityClient"); } this.DbEntitySet.Remove(grp); }
public virtual async Task CreateAsync(IoTClient per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("IdentityClient"); } this.DbEntitySet.Add(per); await this.Context.SaveChangesAsync(); }
public virtual void Create(IoTClient per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("IdentityClient"); } this.DbEntitySet.Add(per); this.Context.SaveChanges(); }
public virtual async Task UpdateAsync(IoTClient per) { this.ThrowIfDisposed(); if (per == null) { throw new ArgumentNullException("IdentityClient"); } if (per != null) { this.Context.Entry<IoTClient>(per).State = EntityState.Modified; } await this.Context.SaveChangesAsync(); }
public IdentityResult Update(IoTClient per) { _store.Update(per); return IdentityResult.Success; }
public async Task<IdentityResult> UpdateAsync(IoTClient per) { await _store.UpdateAsync(per); return IdentityResult.Success; }
public IdentityResult Detach(IoTClient per) { _store.Detach(per); return IdentityResult.Success; }
public virtual void Delete(IoTClient grp) { SupportDelete(grp); this.Context.SaveChanges(); }
public virtual async Task DeleteAsync(IoTClient grp) { SupportDelete(grp); await this.Context.SaveChangesAsync(); }