jimbolla wrote:
Ooh kinda like FxCop for NHibernate.... NhCop!
yup, very similar to FxCop... allthough not quite the same. The most important part would be detecting errors instead of simply reporting warnings. The warnings (and suggestions for possible improvements) are also very cool though, but to me the errors are the most important part.
But it's very similar to FxCop in that it would basically check a bunch of 'rules' against the mapping files (in combination with either the .NET classes or the database metadata, or both depending on what the user prefers). These rules would have different categories, such as performance, data consistency, etc...
I think this tool could be very helpful for new nhibernate users