According to this topic Fluent nHibernate with Automapping: How to get a parent or "containg" object from a child
I've made class with "parent" property:
class Box
{
public virtual int Id { get; protected set;}
public virtual IList<Item> Items {get; protected set;}
}
class Item
{
public virtual int Id { get; protected set;}
public virtual Box Parent {get; set;}
}
As suggested in above topic, I wrote the convention that sets keycolumn of Parent
property to same as keycolumn of Items
in Box
.
The difference is that I would like to set Inverse
on Parent
property, not on collection side. Is there any possibility to do that?
I've tried to write proper implementation of IReferenceConvention
, but I don't see that possibility there.