Fluent mapping help

Posted by Matt Thrower on Stack Overflow See other posts from Stack Overflow or by Matt Thrower
Published on 2010-06-18T14:12:05Z Indexed on 2010/06/18 14:23 UTC
Read the original article Hit count: 197

Filed under:
|
|

Hi,

This is probably a very simple question but I'm new to nHibernate and I'm having trouble working this out.

I have a Page object, which can have many Region objects. I also have a Workflow object. Page and Region objects both have a relationship to Workflow and it's this double association that I'm having trouble with.

The PageMap has

HasMany(Function(x) x.Regions).Cascade.All()

And the RegionMap has:

 References(Function(x) x.Page)

And this all seems to work.

But how do I define the relationship between Workflow and these two objects?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about fluent