在DataBase中读写C#对象 [英] Read and write C# object in DataBase
本文介绍了在DataBase中读写C#对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将C#对象存储在DataBase中并从DB中检索它。
有多少种方法可以实现这一点。
解决方案
< blockquote>尝试 TableAdapter
- 如何:将数据从对象保存到数据库 [ ^ ]。
此外,尝试序列化数据 - 保存和读取数据库对象 [ ^ ]。
I want to store the C# object in DataBase and retrive that from DB.
How many ways are there to achieve this.
解决方案
TryTableAdapter
- How to: Save Data from an Object to a Database[^].
Also, try serializing data - Saving and Reading Object to/from a Database[^].
这篇关于在DataBase中读写C#对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文