Пример #1
0
 public BaseRepository()
 {
     try
     {
         _context = _contextManager.GetContext();
         DbSet    = _context.Set <TEntity>();
     }
     catch (Exception erro)
     {
         throw erro;
     }
 }
Пример #2
0
 public UnitOfWork()
 {
     _context = _contextManager.GetContext();
 }