示例#1
0
        public async Task Remove(TEntity entity)
        {
            using var context = new JwtContext();
            context.Remove(entity);
            await context.SaveChangesAsync();

            // throw new NotImplementedException();
        }
 public async Task Remove(T entity)
 {
     using var context = new JwtContext();
     context.Remove(entity);
     await context.SaveChangesAsync();
 }
示例#3
0
 public async Task Delete(int id)
 {
     using var context = new JwtContext();
     context.Remove(id);
     await context.SaveChangesAsync();
 }