Hello there,
I'm using LLBLGen Pro v2.6 Final Oct 6th 2008 with .NET 3.5 on SQL Server 2005. Self-Servicing architecture.
I'm having some intermittent NullReferenceExceptions when calling TypedListDAO GetMultiAsDataTable() calls. The arguments can change over time as they are built up in code from user input.
I'm sure that the exceptions are caused by badly formed contents of the PredicateExpressions, SortExpressions, ResultsetFields parameters, as I have seen that cause NullRef exceptions before.
I'm trying to find a way to see what's going on so I can log it in my exception handler. There are two things I'd appreciate some help with please.
-
Is there a way to see what SQL query is generated by the GetMultiAsDataTable call ?
-
Is there a way to enumerate PredicateExpressions, ResultsetFields, SortExpressions, RelationCollections, and GroupByCollections to examine their contents ?
The problem is intermittent so I'd prefer to collect this information using C# code in a catch block rather than have tracing running full time.
Thanks in advance for any help.
Mike