Writing my last post got me thinking… Surely someone has written an automated script or tool that could examine NHibernate mapping files and verify all the items I pointed out in my previous post. Or maybe even, another step further, also make sure the column names specified in the mapping files actually exist in the tables in a real database schema!
I’m very tempted to write a NAnt/MSBuild task to do this kind of thing so I can run it as part of my test suite. I’m thinking something like this would be very useful as a kind of quick “smoke test” for NHibernate mappings.
But, before I do…
Does anyone know of an automated tool that does this kind of thing?

Is this what you’re looking for?
http://www.ayende.com/Blog/archive/2006/08/09/7360.aspx