ElementsFetched event

Posts   
 
    
jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 17-Oct-2013 17:08:40   

I am looking to intercept an entity prior to databinding a FormView with an LLBLGenDataSource2 control. In looking at some other threads, it looked like ElementsFetched might be an option for me. However, when I put a breakpoint in that event, it never hits the breakpoint.

I have LivePersistence = false and the debugger is hitting breakpoints in the PerformSelect and PerformWork events. If I change to LivePersistence = true, the debugger will hit the breakpoint.

Does this event only fire when LivePersistence = true? Or is this a bug?

Can you provide a code sample of working with this event?

I am using LLBLGen v4 adapter and the runtime version is 4.0.13.0406.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Oct-2013 18:50:57   

Does this event only fire when LivePersistence = true?

Yes indeed.

As when LivePersistence is turned off, you have the methods that fetches and/or perform the work, so you don't need other events to hook at, which is the case if LivePersistence is turned on, that's when you might need such events.

jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 17-Oct-2013 18:58:20   

OK. Is that documented anywhere? I really didn't see any documentation on that event anywhere that I looked.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Oct-2013 20:03:52   

Did you check the Reference Manual?