Retrieving PK values after insert

Posts   
 
    
Posts: 54
Joined: 22-Jun-2010
# Posted on: 08-Sep-2010 06:30:24   

LLBLGEN 3.0 .net framework 2.0 C# windows application Oracle 9i/10g

Let us say I have a table as follows

EMPLOYEE_ID [PK SEQUENCE] EMPLOYEENAME

I am inserting data using saveentity which works fine. Now after save entity is executed, i need the get the PK value for record inserted by the user for purpose of printing.

Hence, I would like to know how can i retrieve the PK value inserted by respective user after saveentity.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 08-Sep-2010 10:03:42   

Check the PK field of the entity. The value of the PK is returned in the saved entity.

Posts: 54
Joined: 22-Jun-2010
# Posted on: 08-Sep-2010 10:39:42   

Walaa wrote:

Check the PK field of the entity. The value of the PK is returned in the saved entity.

Got it thanks