Output parameter / Identity value

Posts   
 
    
Amith
User
Posts: 23
Joined: 21-Aug-2008
# Posted on: 18-May-2010 19:15:43   

Hi,

Is there any way to get the Output parameter or new Identity value generated while doing Insert statement using LLBLGen persist method?

I want to avoid refetch with the save. All I need is the new Id value which is an Identity column

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 18-May-2010 20:47:25   

Yes, specify false for the refetch parameter of the save. The new Id value will be available on the entity Id property - accessing any other field will result in an OutOfSync exception.

Matt