A.R.
A.R.

Reputation: 15704

Nhibernate Mappings

Is there any way to get references to the mapping objects that NHibernate creates from the XML files? How about the ClassMap objects that FluentNhibernate creates? I wanted to create some query generation functions (for row counts, etc.) using this information. Since I went through the trouble of mapping it, I ought to have access to it in code, right?

Upvotes: 0

Views: 68

Answers (1)

Diego Mijelshon
Diego Mijelshon

Reputation: 52745

Actually, Fluent ClassMaps are translated to XML.

The ISessionFactory exposes a GetAllClassMetadata method that is probably what you need.

Upvotes: 1

Related Questions