title: Is there a command to check to see if a database exists from Entity Framework?
body: <p>I may have worded the question poorly but in my global.asx file i use </p>
  
  <pre><code> if (System.Diagnostics.Debugger.IsAttached)
          {
              var test = new TestDbSeeder(App_Start.NinjectWebCommon.UcxDbContext);
              test.seed();
         }
  </code></pre>
  
  <p>This checks to see if the debugger is attached and runs my test seeder so that my acceptance tests always pass.</p>
  
  <p>I need to check to see if the database exists as well and if not run this code first:</p>
  
  <pre><code>  var test2 = new DataSeeder();
    test2.Seed(App_Start.NinjectWebCommon.UcxDbContext);
  </code></pre>
  
  <p>This dataseeder is the actual data that has to always be in the database. Is there a command to check  if the database exists so that I can run that code block.  Thanks!</p>