Beispiel #1
0
 public void Dispose()
 {
     if (entities != null)
     {
         entities.Dispose();
         entities = null;
     }
 }
Beispiel #2
0
 public GenericRepository()
 {
     this.entities = new MusicalogEntities();
     this.dbSet    = entities.Set <T>();
 }