Exemplo n.º 1
0
 public void Dispose()
 {
     if (_context != null && !_context.IsDisposed)
     {
         _context.Dispose();
     }
 }
        public void Disconnect()
        {
            if (_connection != null)
            {
                if (_connection.IsConnect)
                {
                    _connection.Disconnect();
                }
                _connection.Dispose();
            }

            if (_context != null)
            {
                _context.Release();
                _context.Dispose();
            }
        }