Hi, I'm thinking about creating a tool for comparing two NHibernate mapping configurations, so sql change scripts could be easily created which could be used by a tool such as Tarantino. The basic idea is that while you're developing you can change your mappings worrying about versioning. When you're ready for your integration tests, you can run this diff tool, comparing a copy of your mappings before you made any changes with your current mappings. It would then generate alter table, drop table, etc. scripts.
In looking at the code, it seems a start would be extending the Configuration class and using the TableMappings collection to compare the mappings (I'd have to at least have to have TableMappings protected, I think.) Anyway, I'm wondering if any of the NHibernate gurus here have any advice on how I should approach this task. The ultimate goal is to have to only change your entity and have the changes cascade to your mappings and from there to your DB. At the moment, Fluent NHibernate with it's convention support propagates the change from the entity to mapping, but now I'd like a smooth way of getting the change to the DB. Thanks for any ideas. Nick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
