How to get runtime class mapping information in Nhibernate?

Where does NHibernate store runtime matching information and how to get it? I need to get association properties (complex properties) for a given mapped class at runtime. And I cannot rely on reading hbm files, because mapping can be done in fluent nhibernate.

+3
source share
1 answer

Yes. You can use ISessionFactory.GetClassMetadatato get a metadata object for each type of persistant.

http://www.nudoq.org/#!/Packages/NHibernate/NHibernate/ISessionFactory/M/GetClassMetadata

+5
source

Source: https://habr.com/ru/post/1785709/


All Articles