开发者

IntegrationTests for NHibernate.MappingException: No persister for:

开发者 https://www.devze.com 2022-12-30 14:09 出处:网络
If I forgot to add mappings to a persister object, NHibernate will throw an exception when I\'ll run the application.

If I forgot to add mappings to a persister object, NHibernate will throw an exception when I'll run the application.

I want to write an integration tests, that test that all mappings are provided to NHibernate. what is the way you recommend to f开发者_开发技巧ollow?


Take a look at this article (Ghostbusters!), or if you're using fluent-nhibernate you might like its persistence specification testing.

0

精彩评论

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