title: Cross database query in C# to get Databases names list
body: <p>I'm using Entity Framework 6 (EF6)  with C#. I'm trying to write a DB agnostic query to get all the databases names list.</p>
  
  <p>For example:</p>
  
  <p>with SQL Server exists something like</p>
  
  <pre><code>select * from master.sys.databases
  WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb');
  </code></pre>
  
  <p>with  MySQL</p>
  
  <pre><code>SHOW DATABASES
  </code></pre>
  
  <p>and so on with Postgres, Oracle, etc.</p>
  
  <p>So the question is if EF6 offers a way to get this list independently by the specific database.</p>