We are using ef code first with the DropCreateDatabaseIfModelChanges seed model.
The database doesn’t have a lot of sensitive information, so it’s fine if it gets dropped.
However we should be able to backup the old version before dropping it. Is it possible?
We will implement the interface
IDatabaseInitializer<T>in the soon future.For now, we’re using this code (which, I know, is not ideal):