This is probably a very simple question, but I'm new to nHibernate and I'm having trouble doing this .
I have a page object, which can contain several field objects. I have a workflow object, both the page and the area object are related to the workflow and this is the double association in which I am having trouble .
PageMap
is normal (function (x) x rayagan). Pebble All ()
and areamap
context (function (x) x.page)
and all this Seems to work.
But how does this work define the relation between the workflow and these two objects?
How is this in your database? If both have a foreign key of workflow, then both are mapped as a workflow
property:
reference (function (x) x.Workflow )
In each mapping class. If only the page
is, and the area
is estimated, then add an unmapped redone property to the area
: type:
Public Workflow Workflow {get {return Page.Workflow; }}
Comments
Post a Comment