Since there was no response to my first attempt, I shall re-phrase my question.
What I need to do is save an object to an image column in an sql database.
Now, as I understand it, any object can be serialized as long as it implements
ISerializable. So I did that. Now I run into the issue of - the objects members
must implement ISerializable as well.
The reason for this is that I need to be able to execute several sqlcommands
to create a object containing several datatables. What I need to do is save the parameters (search criteria) somehow so that I can execute the queries at a later time. I am thinking that I can make my own object which is composed of the several SqlParameter arrays, and convert it to a byte for inserting into a database as a "saved search criteria" or even put into the ViewState of a webform so that the page can execute the query without going thought the complex process of gather the values from the ui and creating the SqlParameters.
Here is what I would like to persist to a byte. I have a simple collection of
SqlParameter arrays. i.e -
public class SavedCriteria : ISerializable
public SqlParameter Params1;
public SqlParameter Params2;
public void GetObjectData(SerializationInfo info, StreamingContext context)
View Complete Post