1

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?

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

1 Answers1

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