Saving Entities with

Posts   
 
    
amathew
User
Posts: 2
Joined: 14-Jan-2009
# Posted on: 14-Jan-2009 12:13:05   

Hi There,

Please help us on the following issue.

1:N relational tables Insert and Edit from Front end(C#)

We are having 3 tables with 1:N relation in DB.We are trying to Insert and Update(edit) from c# using latest LLBLGEN Pro.

Edit

Scenario
 : - During edit one of child tables record is deleted , a new one added , and update an existing record are done. In this situation , the Parent record being  in "isNew"  state as  "False" how to set "isNew" for child records as "True" for the new record, and "False" for the updated record and finally how to save these records,once its attached to the parent record ?.

Kindly help us to overcome this issue as early as possible.Sample code would be greatly helpful.

thanks and regards

Anu

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 14-Jan-2009 12:37:40   

You didn't specify which version of LLBLGen Pro are you using, I'll assume it's 2.6 You didn't specify whether you are using Adapter or SelfServicing.

Anyway I recommend you read this: Unit of work and field data versioning That's for the Adapter template set, but once you are there you can navigate to the same article under SelfServicing.

amathew
User
Posts: 2
Joined: 14-Jan-2009
# Posted on: 14-Jan-2009 12:41:47   

Apologies for the insufficient information.

Using version 2.6 and Self servicing.

I will read the article and come back to you if I have more questions.

Many thanks,

anu