예제 #1
0
 public UnitOfWork(TvShowDbContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }
예제 #2
0
 public GenericRepository(TvShowDbContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     dbSet        = context.Set <TEntity>();
 }