Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing == true)
     {
         entities = null;
     }
 }
Пример #2
0
 public NotebookRepository()
 {
     entities = new NotebooksEntities();
 }
Пример #3
0
 public NotebookRepository(NotebooksEntities entities)
 {
     this.entities = entities;
 }
Пример #4
0
 // This will be called from controller default constructor
 public DataRepository()
 {
     entities           = new NotebooksEntities();
     NotebookRepository = new  NotebookRepository(entities);
     NoteRepository     = new NoteRepository(entities);
 }