public void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this._context != null)
         {
             this._context.Dispose();
             this._context = null;
         }
     }
 }
 public UnitOfWork(FrameworkThreeContext context)
 {
     this._context = context;
 }
Esempio n. 3
0
 public GenericRepository(IUnitOfWork unitOfWork)
 {
     _context = unitOfWork.DbContext;
 }