public void Delete(TEntity entityToDelete)
        {
            if (DbCxt.Entry(entityToDelete).State == EntityState.Detached)
            {
                DbSet.Attach(entityToDelete);
            }

            DbSet.Remove(entityToDelete);
        }
Ejemplo n.º 2
0
 public void Update(TEntity entityToUpdate)
 {
     dbSet.Attach(entityToUpdate);
     _refreshTokenContext.Entry(entityToUpdate).State = EntityState.Modified;
 }