I ran into this issue tonight and I want to make sure I understand
correctly my error.

Let's say I have a Parent entity and a Child entity.  There is a
ManyToMany association between the two, as a specific Child may have
more than one Parent.

(snipped for brevity)
POCO:
class Parent {

    public virtual List<Child> Children { get; protected set; }
}

class Child {
    public virtual Parent Parent { get; set; }
}

In FluentNHibernate this looks like this:

Parent....
    HasManyToMany(parent => parent.Children)
        .Cascade.All()
        .LazyLoad()
        .AsBag();

Child....
    References(child => child.Parent);

Now, I was attempting to get load a unique Child given a Parent's Id.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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