Hello,
I'm getting a System.Exception {System.InvalidOperationException} when attempting to wrap the proccessing of some LLBLGen entities within a transaction.
The Inner Exception message states: "There is already an open DataReader associated with this Command which must be closed first."
The exception occurs during a lazy load fetch of an entity collection two levels beneath a parent LLBLGen entity. I'm overriding the OnFetchComplete() method in the first child entity to initialize a struct by looping through the second child entity collection.
I don't get the exception if I remove the transaction or I skip the code to initialize the struct in the first child entity's OnFetchComplete() method.
I've attached some code to assist with troubleshooting.
I'm using LLBLGen v2.5 Final.
Please advise.