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