how to serialize class to database instead of file system c#

后端 未结 6 2253
南笙
南笙 2021-02-10 19:10

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

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-10 19:28

    Serialize an object into XML. Try and let a dataset read from that XML blob. Create an DB create statement for each table/row in the dataset.

提交回复
热议问题