I have these classes:

ParentEntity : ISomeInterface
{
   public ParentEntity()
   {
          ComplexProperty  = new ComplexProperty { ParentEntityReference = 
this };
    }
   int ID {get; set;}
   ComplexProperty ComplexProperty {get; set;}
}

ComplexProperty
{
   int ComplexPropertyID {get; set;}
   ISomeInterface ParentEntityReference {get; set;}
}

Mapping is one way, meaning thet ParentEntity has a "HasMany()" mapping and 
that's it.

While working with POCOs, everything is fine. I get the parent class, and 
the child has a reference to the parent. When I retrieve the ParentEntity 
object from the ORM though, The property: 
ParentEntity.ComplexProperty.ParentEntityReference == null ! Any Idea how I 
get around this? And how to handle one way mappings in general? All I need 
is a reference to the parent object inside the ComplexProperty

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/Xzba_tq0zwkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to