public virtual async Task <TEntity> CreateAsync(TEntity entity) { if (entity != null) { await EntitySet.AddAsync(entity); await _context.SaveChangesAsync(); } return(entity); }
public async Task <int> CommitAsync() => await _databaseContextCore.SaveChangesAsync();