Ok, I figured out a way to create tables and a database (not necessarily the best way). The result of CreateDatabaseScript
can be executed:
// create the database db.CreateDatabase(); // grab the script to create the tables string createScript = db.CreateDatabaseScript(); // execute the script on the database db.ExecuteStoreCommand(createScript);
You should do some checking to make sure that the tables and database are not already created, otherwise the application will crash.
I'm going to take a hit to switch my project to code. I hope the above will help anyone who is watching.
source share