阅读背景:

在Entity Framework中的运行时更改连接字符串中的数据库名称

来源:互联网 

In my project I want to run some unit tests on the DAL layer that is using EntityFramework. I'm creating from scrips a new database before each run of the tests (in order to have always the same initial data when doing the tests). At the end of the tests, this database is dropped, (all is made automatically with the help of [ClassInitialize()] and [ClassCleanup()] attributes.In my project I want to run some unit tests on




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: