protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.db != null)
         {
             this.db.Dispose();
             this.db = null;
         }
     }
 }
예제 #2
0
 public AmagerbroElectronicsRep()
 {
     db    = new AmagerbroDbContext();
     dbSet = db.Set <T>();
 }
 public AmagerbroClothesRep()
 {
     db    = new AmagerbroDbContext();
     dbSet = db.Set <T>();
 }
 public AmagerbroFoodRep()
 {
     db    = new AmagerbroDbContext();
     dbSet = db.Set <T>();
 }