Create() and get ID Back / Nested Insert

2010-02-01 Thread chen atlas
My question is: i have object ContactObject (id,name,street...) and other object ContactsOfUsers (userId, name, ContactObject(BelongsTo(contactid))) if i want to create object i do like this: ContactOfUsers contactOfUsers = new ContactOfUsers(); contactOfUsers.ContactPerson = new

Re: Create() and get ID Back / Nested Insert

2010-02-01 Thread Markus Zywitza
Can you show actual code please? -Markus 2010/2/1 chen atlas atlasc...@gmail.com: My question is: i have object ContactObject (id,name,street...) and other object ContactsOfUsers (userId, name, ContactObject(BelongsTo(contactid))) if i want to create object i do like this: