Exemple #1
0
 public UnitOfWork(ForumSystemDbContext dbContext, IRepository <ForumThread> forumThreads, IPostsRepository forumPosts, IUserRepository users)
 {
     _dbContext   = dbContext;
     ForumThreads = forumThreads;
     ForumPosts   = forumPosts;
     Users        = users;
 }
Exemple #2
0
 public EfRepository(ForumSystemDbContext dbContext)
 {
     DbContext = dbContext;
     Set       = DbContext.Set <T>();
 }
Exemple #3
0
 public UserRepository(ForumSystemDbContext dbContext)
     : base(dbContext)
 {
 }
Exemple #4
0
 public PostsRepository(ForumSystemDbContext dbContext)
     : base(dbContext)
 {
 }