Menu

Save Objects

2004-09-09
2004-09-09
  • Nobody/Anonymous

    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

     
    • Richard Banks

      Richard Banks - 2004-09-09

      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.

       
    • Nobody/Anonymous

      Thank you.

      All right

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.