Exemplo n.º 1
0
 public SqlTransactionBatches(ISqlExecuter sqlExecuter, SqlTransactionBatchesOptions options, ILogProvider logProvider, IDelayedLogProvider delayedLogProvider)
 {
     _sqlExecuter   = sqlExecuter;
     _options       = options;
     _logger        = logProvider.GetLogger(nameof(SqlTransactionBatches));
     _delayedLogger = delayedLogProvider.GetLogger(nameof(SqlTransactionBatches));
 }
Exemplo n.º 2
0
        public GenericRepository(GenericRepositoryParameters parameters, string entityName)
        {
            EntityName             = entityName;
            _genericRepositoryName = "GenericRepository(" + EntityName + ")";

            _logger              = parameters.LogProvider.GetLogger(_genericRepositoryName);
            _performanceLogger   = parameters.LogProvider.GetLogger("Performance." + _genericRepositoryName);
            _delayedLogger       = parameters.DelayedLogProvider.GetLogger(_genericRepositoryName);
            _genericFilterHelper = parameters.GenericFilterHelper;

            _repository = new Lazy <IRepository>(() => InitializeRepository(parameters.Repositories));
            Reflection  = new ReflectionHelper <TEntityInterface>(EntityName, parameters.DomainObjectModel, _repository);
        }