Hello,

I have two entities, A and B, with A having a collection of B but
WITHOUT B having a reference to A.
Of course the database foreign key column is in table B:

class A {
  ICollection<B> Bs { get; }
}

class B {
  ... // does not have reference to A
}

table A {
ID int,
...
}

table B {
ID int,
A_ID int,
...
}

Now I want to import a lot of As and Bs using
IStatelessSession.Insert. The problem is I can only add Bs to A.Bs,
but these are not inserted when I insert A. But when inserting B
explicitly, A_ID always will have the value NULL.

Is there a way to come around that problem?

Thanks a lot!

Michael
--~--~---------~--~----~------------~-------~--~----~
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