@pphillipsbiz
Typically, a debugger window shows all data fields (including private ones) of an object. What it shows here in particular is that an object being viewed has a reference to a DataRow
instance, but this does not mean that the object itself can be casted to DataRow
. As I mentioned previously:
This is the case, where the typecast cannot be performed.
So would one access the data that is passed as a JSON object?
@pphillipsbiz
Using template syntax is the recommended way to go.
I have the simuilar problem with the following table:
Bolth tables use the same DTO, however if zero rows are return then we get the following error:
In this use case, we are using a strongly type mode:
I don’t want to use ReportBuildOptions.AllowMissingMembers
as I want to ensure that if there is a missing field then it should fail.
@pphillipsbiz
It seems like there is a mismatch between data provided (objects of regular classes) and the exception message (saying about DataRow
). Please double check that all the pieces of information relate to the same case. Then, if the issue is still there, please provide us a sample template, data, and code reproducing the issue (a standalone console application without compilation errors), so we could check it on our end.