예제 #1
0
        public async Task WriteManyAsync(params T[] Entity)
        {
            await _dbSet.AddRangeAsync(Entity);

            await StaticOnWriteManyEventAsync?.Invoke(Entity, this);

            await ScopedOnWriteManyEventAsync?.Invoke(Entity, this);
        }
예제 #2
0
        public async Task WriteManyAsync(ICollection <T> Entity)
        {
            await _dbSet.AddRangeAsync(Entity);

            await StaticOnWriteManyEventAsync?.Invoke(Entity, this);

            await ScopedOnWriteManyEventAsync?.Invoke(Entity, this);
        }