示例#1
0
 public UserRepository(RedditDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
示例#2
0
 public PostService(RedditDbContext db)
 {
     this.db = db;
 }
示例#3
0
 public PostRepository(RedditDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public RedditService(RedditDbContext context)
 {
     redditContext = context;
     postRepo      = new PostRepository(redditContext);
     userRepo      = new UserRepository(redditContext);
 }
示例#5
0
 public PostServices(RedditDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public RedditController(IUserServices userServices, IPostService postService, RedditDbContext dbContext)
 {
     this.userServices = userServices;
     this.postService  = postService;
     this.dbContext    = dbContext;
 }
示例#7
0
 public UserServices(RedditDbContext dbContext)
 {
     this.dbContext = dbContext;
 }