I'd like to be able to create tables, or to create the necessary SQL to create a table from an existing class (with DataAnnotations.) Basically the same thing that VS does for you automagically with migrations. I'd like to be able to control table creation in the app.
Can't find any documentation on this, or don't know where to look.
This article is referenced in many posts, but it relies on VS magic and doesn't get into writing it into the application.