A typed data set is a class which derives from DataSet. Same thing for a table that's part of the typed data set.
Normally you are able to pass an object of a derived type to a function parameter which expects a objects of the base type. But in your case you are using 'ref' and in this case the only acceptable type is the parameter type, DataTable.
The only way to solve this is to change ExecuteDataAdapterDataTableWithParams. Something like the following might work but it really depends on what code you have in that method:
int ExecuteDataAdapterDataTableWithParams<T>(IDbCommand podbCommand, ref T pdtDataTable) where T : DataTable;
No comments:
Post a Comment