Beispiel #1
0
 public BookRepository(ShareBookDbContext _context)
 {
     if (_context is null)
     {
         throw new System.ArgumentNullException(nameof(_context));
     }
     this._context = _context;
 }
Beispiel #2
0
 public UserRepository(ShareBookDbContext _context, UserManager <AppUser> _userManager)
 {
     this._userManager = _userManager;
     this._context     = _context;
 }
 public LanguageRepository(ShareBookDbContext _context)
 {
     this._context = _context ?? throw new System.ArgumentNullException(nameof(_context));
 }