I have several Entity Framework Code First DbContext objects that use a custom initializer.
In the initializer call
context.Database.Create();
creates a database in SQL Server.
Data and log files are created in directories based on database parameters in SQL Server.
I would like different subclasses of DbContext to have different paths to the data and log files. Can I specify the paths somehow when creating the database, or should I detach / move / attach in a separate step after creating the database?
source share