开发者

Delete all db schema in test teardown using nhibernate

开发者 https://www.devze.com 2022-12-16 20:09 出处:网络
I am looking for the best way to delete all schema changes(all tables really) made when unit testing.

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

精彩评论

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

关注公众号