Store new entities and related

Posts   
 
    
shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 20-Dec-2006 15:56:56   

Hallo,

i have a n:m relation between t1 and t3 with an intermediate table t2. An entity t1 is defined on his members in t3. To define a new t1 i have to collect the t3 that should define t1. Now i have to create a new t1Entity and set the other attributes (like name and so on) and i would like to assign the collected t3Entities (which allready exist) to this new t1Entity and save this t1Entity and the intermediate t2Entities - to construct the relation between t1 and his t3 etnities.

How could i do this? How could i save an (new) entity and his (new) intermediate relation entities in one step?

I'm using LLBLGenPro 2.0.0.0 with Adapter.

Thanks a lot!

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 20-Dec-2006 16:19:47   

Please check the answer of the following question How do I create a m:n relation between two entity objects? in the LLBLGen Pro docs Best practises - How do I ... ?

shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 20-Dec-2006 16:37:13   

Walaa wrote:

Please check the answer of the following question How do I create a m:n relation between two entity objects? in the LLBLGen Pro docs Best practises - How do I ... ?

Sorry, i have searched for the wrong terms, so i did not find it.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 20-Dec-2006 17:36:19   

shennig wrote:

Walaa wrote:

Please check the answer of the following question How do I create a m:n relation between two entity objects? in the LLBLGen Pro docs Best practises - How do I ... ?

Sorry, i have searched for the wrong terms, so i did not find it.

Sorry for the silly question, but did you find the answer in the manual or didn't you find the answer in the manual? simple_smile (just to be clear so we can close the thread)

Frans Bouma | Lead developer LLBLGen Pro
shennig
User
Posts: 48
Joined: 14-Nov-2006
# Posted on: 21-Dec-2006 07:46:02   

I've found it, after the hint!