Esempio n. 1
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             dbContext.Dispose();
         }
         this.disposed = true;
     }
 }
Esempio n. 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    databaseContext.Dispose();
                }

                this.disposed = true;
            }
        }