I’ve got a class with a bunch of [ColumnName(‘foo’)] NHibernate attributes. Is there an easy way to ask NHibernate to list all of the ColumnNames for a given class?
It sounds like it should be really easy but I’m just not seeing any kind of inspection in the NHibernate docs (or maybe I’m just blind today).
Use LINQ and reflection: