Esempio n. 1
0
 /// <summary>
 /// Constructs repository with the dbdontext
 /// </summary>
 /// <param name="context"></param>
 public UserRepository(NotTwitterDbContext context)
 {
     _context = context ?? throw new NullReferenceException();
 }
Esempio n. 2
0
 public CommentRepository(NotTwitterDbContext db)
 {
     _context = db ?? throw new NullReferenceException();
 }