I has a two classes (Departamento and Empleado). Each Departamente has many empleados.
When i create a new Departamento and create new Empleados. I assigned Empleados to Departamento.
I need do persistent each Empleado that I create or only need persistent Departamento.
Saludos
Victor (Madrid - Spain
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I has a two classes (Departamento and Empleado). Each Departamente has many empleados.
When i create a new Departamento and create new Empleados. I assigned Empleados to Departamento.
I need do persistent each Empleado that I create or only need persistent Departamento.
Saludos
Victor (Madrid - Spain
As long as the association from Departamento to Empleados is SaveAutomatic="true" then you only need to call objDeparatamento.Save().
All the Empleados objects will be saved as well (as long as they are dirty).
- Richard.
Thank you.
All right