Example #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Example #2
0
            public void Dispose()
            {
                WorkContext.StopWorkRude(); //make sure cancellation token is at "cancel" state
                WorkContext.Dispose();

                PrefetchingBehavior.Dispose();
                TransactionalStorage.Dispose();
            }
Example #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing && _context != null)
                {
                    _context.Dispose(true);
                }

                disposedValue = true;
            }
        }
Example #4
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    _dbContext.Dispose();
                }
            }

            this.disposed = true;
        }
Example #5
0
 public void Dispose()
 {
     WorkContext.Dispose();
     PrefetchingBehavior.Dispose();
     TransactionalStorage.Dispose();
 }