Thanks for the response guys, forgot about the reference manual!
It's all working well now, im using the below to get the PKID of the affected record, is this the best way to access the PKID? Wasn't sure if there was a way of knowing what type of PerformWork it was, i.e. Update, Insert, Delete, without checking the queue.count().
Protected Sub LLBLGenProDataSource1_PerformWork(ByVal sender As Object, ByVal e As SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs) Handles LLBLGenProDataSource1.PerformWork
e.Uow.Commit(New Transaction(IsolationLevel.ReadCommitted, "UOW"), True)
Dim insertQueue As List(Of ActionQueueElement(Of IEntity))
Dim updateQueue As List(Of ActionQueueElement(Of IEntity))
insertQueue = e.Uow.GetInsertQueue()
updateQueue = e.Uow.GetUpdateQueue()
If (insertQueue.Count > 0) Then
intRecordPKID = insertQueue.Item(0).Entity.PrimaryKeyFields.Item(0).CurrentValue
ElseIf (updateQueue.Count > 1) Then
intRecordPKID = updateQueue.Item(0).Entity.PrimaryKeyFields.Item(0).CurrentValue
End If
End Sub
thanks, Dan.