public virtual Task InserirItemAsync(T item) { return(_mongoDbContext.AddCommand(async() => await Collection.InsertOneAsync(item))); }
public async Task Delete(Expression <Func <TEntity, bool> > expression) { await context.AddCommand(() => dbSet.DeleteManyAsync(expression)); }