public UnitOfWork(DotNetSurferDbContext dbContext, ICdnHandler cdnHandler)
 {
     this._dbContext              = dbContext;
     this._topicRepository        = new Lazy <ITopicRepository>(() => new TopicRepository(this._dbContext, cdnHandler));
     this._articleRepository      = new Lazy <IArticleRepository>(() => new ArticleRepository(this._dbContext, cdnHandler));
     this._userRepository         = new Lazy <IUserRepository>(() => new UserRepository(this._dbContext, cdnHandler));
     this._announcementRepository = new Lazy <IAnnouncementRepository>(() => new AnnouncementRepository(this._dbContext));
     this._featureRepository      = new Lazy <IFeatureRepository>(() => new FeatureRepository(this._dbContext));
     this._statusRepository       = new Lazy <IStatusRepository>(() => new StatusRepository(this._dbContext));
 }
Ejemplo n.º 2
0
 public ArticleRepository(DotNetSurferDbContext dbContext, ICdnHandler cdnHandler)
     : base(dbContext)
 {
     this._cdnHandler = cdnHandler;
 }
Ejemplo n.º 3
0
 public FeatureRepository(DotNetSurferDbContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 4
0
 public StatusRepository(DotNetSurferDbContext dbContext)
     : base(dbContext)
 {
 }
Ejemplo n.º 5
0
 public BaseRepository(DotNetSurferDbContext context)
 {
     this._context = context;
 }
 public AnnouncementRepository(DotNetSurferDbContext dbContext)
     : base(dbContext)
 {
 }