public void DoWork()
 {
     using (IocDbContext db = _dbContextFactory.CreateContext())
     {
         // use EF here...
     }
 }
Пример #2
0
 public UnitOfWork()
 {
     _context = new IocDbContext();
 }