Persisting Classes

M

Michael McDowell

Hi,

Would anyone here be able to point me towards an example
of classes being persisted using serialization to an SQL
database.

I am able to persist to an XML file but not to an DataSet
(and thence to SQL). One issue will involve transforming
the hiricial nature or athe XML files structure to a
relational representation.

Thanks in advance,
Michael McDowell
 
I

Ignacio Machin

Hi Michael,

Well if you can persist it to XML then nothing stop you to include this
file as a field in a table, declaring the field as text would do the trick.

A similiar approach could be used if you serialize the object using binary
serialization, you could then use a field of class image.

Hope this help,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top