Code First Entity Framework can generate a database no trouble. Is there a way of parameterising the generation process such that I can create a fresh database instance just for integration tests?
Asked
Active
Viewed 110 times
1 Answers
1
I'm using the same database name but creating a new folder named after the current date by setting the 'DataDirectory'on the AppDomain. EF creates a SQL Server LocalDb with each test run.
Helped by this answer.

Community
- 1
- 1

Ian Warburton
- 15,170
- 23
- 107
- 189