title: Entity Framework Create Database & Tables At Runtime
body: <p>I created some tables in an .edmx file and have been generating the database by selecting "Generate Database From Model" and manually executing an .edmx.sql file on the database to build the tables. </p>
  
  <p>Now, however, I am creating a setup dialog that allows the user to connect the program up to their own database. I thought running <a href="https://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.createdatabase(v=vs.110).aspx" rel="nofollow noreferrer"><code>context.CreateDatabase</code></a> would be good enough to create the database, along with the tables, but the tables are not created. </p>
  
  <p>What is the preferred method for creating the database and tables when the user specifies their own server and database to use, when originally starting with a model?</p>