开发者

Delete all db schema in test teardown using nhibernate

I am looking for the best way to delete all schema changes(all tables really) made when unit testing.

I am using fluent to map my entities and create the schema in the Setup of my tests. I want to be able to delete the schema changes at the end of the tests in the Tea开发者_StackOverflow中文版rdown.

I am using nhibernates SchemaExport to generate the schema.

Sure this is being done at the moment and would appreciate some pointers.

Cheers,


The SchemaExport.Execute has parameter to justDrop.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜