Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (db != null)
         {
             db.Dispose();
             db = null;
         }
     }
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.db != null)
         {
             this.db.Dispose();
             this.db = null;
         }
     }
 }
 public CityRepository()
 {
     db = new MvcShopDbEntitie();
 }
Example #4
0
 public FactorItemRepository()
 {
     db = new MvcShopDbEntitie();
 }
 public ProvienceRepository()
 {
     db = new MvcShopDbEntitie();
 }
Example #6
0
 public ResellerRepository()
 {
     db = new MvcShopDbEntitie();
 }
Example #7
0
 public UserRepository()
 {
     db = new MvcShopDbEntitie();
 }
Example #8
0
 public GroupRepository()
 {
     db = new MvcShopDbEntitie();
 }
Example #9
0
 public ProductRepository()
 {
     db = new MvcShopDbEntitie();
 }