Пример #1
0
 public UnitOfWork(MediaContext context)
 {
     this.context = context ?? throw new ArgumentNullException("Context can not be null.");
 }
Пример #2
0
 public Repository(MediaContext context)
 {
     this.context = context ?? throw new ArgumentNullException("Context can not be null.");
     dbSet        = context.Set <T>();
 }