maiconmm
maiconmm

Reputation: 311

Fluent NHibernate "HasMany" classes in Configuration.ClassMappings

I'm trying to create a procedure to check the database structure, and for most of it I just look at "NHibernate.Cfg.Configuration.ClassMappings", but I can't find in the PersistentClass collection or each class properties the list of tables generated by fields mapped like this:

...
HasManyToMany(x => x.ChildrenListField);
...

How do I?

Upvotes: 0

Views: 87

Answers (1)

MichaC
MichaC

Reputation: 13381

I guess what your are looking for are the CollectionMappings

foreach (var clazz in cfg.CollectionMappings)
....

Upvotes: 1

Related Questions