Hi,
with LivePersistence=false, you have to implement the perfomDbCount, performSelect and performWork events.
there is a quick exemple :
Private Sub dsMappingSets_PerformGetDbCount(ByVal sender As Object, ByVal e As SD.LLBLGen.Pro.ORMSupportClasses.PerformGetDbCountEventArgs2) Handles dsMappingSets.PerformGetDbCount
e.DbCount = e.ContainedCollection.Count
End Sub
Private Sub dsMappingSets_PerformSelect(ByVal sender As Object, ByVal e As SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs2) Handles dsMappingSets.PerformSelect
Dim adapter As New DataAccessAdapter
Using adapter
adapter.FetchEntityCollection(e.ContainedCollection, e.Filter)
End Using
End Sub
Private Sub dsMappingSets_PerformWork(ByVal sender As Object, ByVal e As SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs2) Handles dsMappingSets.PerformWork
Try
For Each element As UnitOfWorkElement2 In e.Uow.GetEntityElementsToDelete
Dim mappingSet As MlmappingSetEntity = CType(element.Entity, MlmappingSetEntity)
MappingController.Delete(mappingSet)
Next
For Each element As UnitOfWorkElement2 In e.Uow.GetEntityElementsToUpdate
Dim mappingSet As MlmappingSetEntity = element.Entity
Aricie.Modules.ModuleLocalizer.Services.EntityHelper.InitEntityUpdate(mappingSet, Me.UserInfo)
Next
e.Uow.Commit(New DataAccessAdapter, True)
Catch ex As Exception
ProcessModuleLoadException(Me, ex)
End Try
End Sub