Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RavenRepository" /> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="configuration">The configuration.</param>
 public RavenRepository(RavenUnitOfWork unitOfWork, RepositoryConfiguration configuration)
     : this()
 {
     this.UnitOfWork = unitOfWork;
     this.UnitOfWork.AddRepository(this);
     this.DocumentSession     = unitOfWork.DocumentSession;
     this.CustomConfiguration = configuration;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RavenRepository" /> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public RavenRepository(RavenUnitOfWork unitOfWork)
     : this(unitOfWork, new RepositoryConfiguration())
 {
 }
Exemple #3
0
 public RavenRepository(RavenUnitOfWork unitOfWork, IMessageProvider messageProvider)
     : this(unitOfWork, new RepositoryConfiguration(), messageProvider)
 {
 }
Exemple #4
0
 public RavenRepository(RavenUnitOfWork unitOfWork, RepositoryConfiguration configuration, IMessageProvider messageProvider)
     : this(unitOfWork, configuration)
 {
 }