title: Export entire database to .sql file using Entity
body: <p>I'm trying to add some functionality to an application I'm writing, where the user can create a new <code>Project</code>, which has it's own database. When this is done, the previous <code>Project</code> database is to be exported to a .sql file that I can import and review later. Problem is, I can't see a way to export it. I've tried looking for a method to do so using:</p>
  
  <pre><code>using (var context = new DBContext())
  {
      context.Database. // no method here for export
  }
  </code></pre>
  
  <p>Is there a way inside of entity to export the database to a .sql file?</p>