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)); }
public ArticleRepository(DotNetSurferDbContext dbContext, ICdnHandler cdnHandler) : base(dbContext) { this._cdnHandler = cdnHandler; }
public FeatureRepository(DotNetSurferDbContext dbContext) : base(dbContext) { }
public StatusRepository(DotNetSurferDbContext dbContext) : base(dbContext) { }
public BaseRepository(DotNetSurferDbContext context) { this._context = context; }
public AnnouncementRepository(DotNetSurferDbContext dbContext) : base(dbContext) { }