public void Dispose()
 {
     if (_Dbcontext != null)
     {
         _Dbcontext.Dispose();
     }
 }
Beispiel #2
0
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
     }
 }
 /// <summary>
 /// Implementation of IDisposable. IBBLContext inherits from IDisposable.
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
     }
     this.disposed = true;
 }
Beispiel #4
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             db.Dispose();
         }
         this.disposed = true;
     }
 }
Beispiel #5
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                db.Dispose();
            }

            disposed = true;
        }
Beispiel #6
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                if (_accountManager != null)
                {
                    _accountManager.Dispose();
                }
                db.Dispose();
            }

            disposed = true;
        }