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

后端 未结 6 2252
南笙
南笙 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:32

    Thomas, what kind of data access logic are you using in your application?

    If you are looking for a way to interact with the database and store/retrieve objects from it, you could also have a look at Entity Framework or NHibernate, such ORMs allow you to focus on what really matters in your application and not on the way objects/entities are loaded or saved.

提交回复
热议问题