I originally defined in my MessageContract a collection of SQLParameters in order to create a simple stored procedure execution through a WCF service. Apparently, SQLParameter is not serializable, so I need some advice on how to proceed here.
Is it possible to still somehow use SQLParameter as part of my WCF contract, or I have to do something else, like creating a custom class with the same properties as an SQLParameter, then create the SQLParameters elsewhere in my code?
UPDATE:
For further context as to why this situation comes about, originally the windows form client was connecting directly to the database to retrieve a DataSet for reporting purposes, using the usual ADO.NET objects. Now, the customer want a common web service to handle all reports. This is the best we can think of to handle it without too much changes.