예제 #1
0
 public ProjectsRepository(CodeLabDbContext context) : base(context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
예제 #2
0
 public BaseRepository(CodeLabDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _dbSet   = _context.Set <TEntity>();
 }