Exemplo n.º 1
0
 public UnitOfWork(SkiShopContext contextPass, bool ifDisposeContext = true)
 {
     context   = contextPass;
     ifDispose = ifDisposeContext;
 }
Exemplo n.º 2
0
 public Repository(SkiShopContext contextPassed)
 {
     context = contextPassed;
     dbSet   = context.Set <T>();
 }