Dependant objects in association not inserted/updated on IEntityTable<T>.Insert()

Feb 12, 2013 at 3:30 PM
Hi, I've been trying to get the toolkit working with my particullar scenario and so far so good, but I've found that when I'm trying to Insert an entity with associated entities as well, the associated entities are not inserted (nor updated) like extensions does.

I've tryed to look for this behaviour and I reached GetInsertExpression function in AdvanceMapping, and the behaviour for inserting Extensions members is there but I cannot find the same for associations.

To be more clear, let's say that I want to persist my Customer (from the examples) and in the same expression, all related Orders should be persisted as well.
This works great using policy when I'm getting the objects from my db, but not in the other way around.

Any help on this regard?
At list, point me to the right direction and I will do the rest.

Thanks in advance