I discovered (to my dismay :() that System.Data.SQLite doesn't implement the CreateDatabase() method.
The obvious workaround (of copying and renaming a created but empty SQLite fileto the path of the desired new database file) is not an acceptable solution for me: I used the Entity Framework to importan existing SQLite database, but I have made several changes to the design, and I foresee making more changes in the future, and I don't want to have to manually create a file to match theEF model that I am using as the"master copy" of what the database will look like.
So, I am currently implementing my own version of CreateDatabase() that will use reflection to pull theObjectSet[ members of my ObjectContext and make each one of them into a table of the same name, and then use reflection on the GenericArgument of the ObjectSet, to get the EdmScalarPropertyAttributes to determine nullability and entitykey settings.
I have seen some mention via google of people parsing the .edmx file at runtime, but I think I'll skip that for now.
Before I get too far, does anyone have any news on a forthcoming CreateDatabase() implementation, or perhaps an example of how they solved this problem?