Exemplo n.º 1
0
        public GenericRepository(GenericRepositoryParameters parameters, string entityName)
        {
            EntityName      = entityName;
            _repositoryName = "GenericRepository(" + EntityName + ")";

            _logger              = parameters.LogProvider.GetLogger(_repositoryName);
            _performanceLogger   = parameters.LogProvider.GetLogger("Performance");
            _genericFilterHelper = parameters.GenericFilterHelper;

            _repository = new Lazy <IRepository>(() => InitializeRepository(parameters.Repositories));
            Reflection  = new ReflectionHelper <TEntityInterface>(EntityName, parameters.DomainObjectModel, _repository);
        }
Exemplo n.º 2
0
 public GenericRepositories(GenericRepositoryParameters parameters, RegisteredInterfaceImplementations registeredInterfaceImplementations)
 {
     _parameters = parameters;
     _registeredInterfaceImplementations = registeredInterfaceImplementations;
 }
Exemplo n.º 3
0
 public GenericRepository(GenericRepositoryParameters parameters, RegisteredInterfaceImplementations registeredInterfaceImplementations)
     : this(parameters, InitializeEntityName(registeredInterfaceImplementations))
 {
 }