Primary Key and trigger

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 20-Apr-2015 07:52:20   

I have a table that has a primary key that is updated by a trigger. But when i insert a record using llblgen and saveentity(.....,true) i get an error saying the data has changed.

How do i get the saveentity to return the primary key updated by the trigger.

I cannot do a getentity as i do not know what record to retrieve by primary key?

llblgen, v3, vb.net, adapter

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 20-Apr-2015 08:50:59   

Is it an instead of insert trigger? What database are you using? Are you using sequences inside the trigger? What runitme library version are you using? (http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7718 )

David Elizondo | LLBLGen Support Team