D
David
Hi,
I wrote (not using an automatic tool) a costum DataSet, called MyDataSet, that holds only costum DataTables, called MyDataTable that holds only MyDataRows.
MyDataSet derives from DataSet, MyDataTable derives from DataTable, and MyDataRow from DataRow. The Tables collection of MyDataSet holds only tables of type MyDataTable. Then, I wrote a web method that returns MyDataSet.
When I consume the method, I can see in the debuger that in the server side, the objects are created correctlly. But when the answer returns to the client side, the answer is indeed of type MyDataSet, but the tables in the Tables collection are just DataTables (and not MyDataTable, as was in the server side).
I think that I have a problem with the XmlSerialization of MyDataTables.
How can I fix this bug?
Thanks, David
I wrote (not using an automatic tool) a costum DataSet, called MyDataSet, that holds only costum DataTables, called MyDataTable that holds only MyDataRows.
MyDataSet derives from DataSet, MyDataTable derives from DataTable, and MyDataRow from DataRow. The Tables collection of MyDataSet holds only tables of type MyDataTable. Then, I wrote a web method that returns MyDataSet.
When I consume the method, I can see in the debuger that in the server side, the objects are created correctlly. But when the answer returns to the client side, the answer is indeed of type MyDataSet, but the tables in the Tables collection are just DataTables (and not MyDataTable, as was in the server side).
I think that I have a problem with the XmlSerialization of MyDataTables.
How can I fix this bug?
Thanks, David