Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing == true)
     {
         entities = null;
     }
 }
Exemplo n.º 2
0
 public BooksRepositoryEn(UnitOfWorkSampleEntities entities)
 {
     this.entities = entities;
 }
Exemplo n.º 3
0
 public BooksRepository()
 {
     entities = new UnitOfWorkSampleEntities();
 }
Exemplo n.º 4
0
 // This will be called from controller default constructor
 public UnitOfWork()
 {
     entities        = new UnitOfWorkSampleEntities();
     BooksRepository = new BooksRepositoryEn(entities);
 }