예제 #1
0
 /// <summary>
 /// Releases the allocated resources for this context.
 /// </summary>
 public void Dispose()
 {
     if (_holidaysContext != null)
     {
         _holidaysContext.Dispose();
     }
 }
예제 #2
0
        private void Dispose(bool disposing)
        {
            try
            {
                if (!_disposed)
                {
                    if (disposing)
                    {
                        DbContext.Dispose();
                    }
                }
            }
            catch (Exception ex) { throw ex; }

            _disposed = true;
        }
예제 #3
0
 public void Dispose()
 {
     _context.Dispose();
 }
예제 #4
0
 public void Dispose()
 {
     Db.Dispose();
     GC.SuppressFinalize(this);
 }