Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepository{T, TK}" /> class.
 /// </summary>
 /// <param name="contextFactory">The context factory.</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="eventAggregator">The event aggregator.</param>
 protected BaseRepository(IContextFactory contextFactory, GenericDaoMapper <T, TK> mapper, IEventAggregator eventAggregator)
 {
     _contextFactory = contextFactory;
     Mapper          = mapper;
     EventAggregator = eventAggregator;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultRepository{T, TK}" /> class.
 /// </summary>
 /// <param name="contextFactory">The context factory.</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="eventAggregator">The EventAggregator</param>
 public DefaultRepository(IContextFactory contextFactory, GenericDaoMapper <T, TK> mapper, IEventAggregator eventAggregator)
     : base(contextFactory, mapper, eventAggregator)
 {
 }