public void AddRange(IEnumerable <TEntity> entities)
        {
            var entityArray = entities.ToArray();

            _writerDelegate.AddRange(entityArray);
            _publisher.Publish(new DataEvent <IEnumerable <TEntity> >(entityArray, EventName <TEntity> .CreatedMany));
        }
        public void AddRange(IEnumerable <TEntity> entities)
        {
            var callerInfo = LoggingExtensions.Caller();

            _profiler.Profile(
                () => _writerDelegate.AddRange(entities),
                $"{callerInfo} - entities=[{JsonLogging.Serialize(entities)}];"
                );
        }
Exemplo n.º 3
0
 public void AddRange(IEnumerable <TEntity> entities)
 {
     WriterDelegate.AddRange(entities);
 }