示例#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);
        }
示例#2
0
 public GenericRepositories(GenericRepositoryParameters parameters, RegisteredInterfaceImplementations registeredInterfaceImplementations)
 {
     _parameters = parameters;
     _registeredInterfaceImplementations = registeredInterfaceImplementations;
 }
示例#3
0
 public GenericRepository(GenericRepositoryParameters parameters, RegisteredInterfaceImplementations registeredInterfaceImplementations)
     : this(parameters, InitializeEntityName(registeredInterfaceImplementations))
 {
 }