Is there some feature in nhibernate that goes through all the mapping files and can get me a list of class names that refer to (many to one) another class?
It would be quite handy, if I could do this, then I could run some queries to tell the user exactly why they’re not allowed to delete certain values, instead of throwing a gross looking foreign key violation message…
Thanks
Isaac
An extremely simplified approach:
Then you have
sessionFactory.GetAllCollectionMetadata(), etc.This should get you started.