Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to serialize to a db

Status
Not open for further replies.

PepeLabel

Programmer
Sep 26, 2002
1
ES
Hello,
I want to serialize some object in a database. This is possible by using the ISerializable interface against a Memory Stream, and then, write the memory steam into a field in database. But, what if I want to serialize each field of my object in a field of the database?
e., I want to serialize:
CPerson{
public int age;
public string name;
}

...into a table named 'Person' with a field named 'age', and another field named 'name'.
Is it possible? I couldn't find any samples anywhere.
Thanks in advance, and sorry for my poor english.

Pepe

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top