Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _db.Dispose();
     }
 }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
        protected override void Dispose(bool disposing)
        {
            DbContextClass _db = new DbContextClass();

            if (disposing)
            {
                _db.Dispose();
            }
            base.Dispose(disposing);
        }
Пример #4
0
 public virtual void Dispose(bool disposing)
 {
     if (!this._disposed)
     {
         if (disposing)
         {
             _dbcontext.Dispose();
         }
     }
     this._disposed = true;
 }