we can easily serialize class to flat file but if i want to serialize class to database then how could i do it and if it is possible then how can i deserialize data from db to c
Using binary serialization to BLOB column, or using XML\Data contact\net Data contact to XML column.
Edit: Binary example already given by @Saurabh. Data contract example provided by Peter Ritchie's blog.