C#导入XML信息
C# import XML information
我是 C# 的新手,也不知道存储数据选项的必要性。
我想要的是一个显示的程序,它是一个桌面,客户,带有两个列(名称,联系人),然后选择一个人时,它将打开一个新的windows,其余的个人个人信息。
I was thinking of using xml file to store data, and when the program starts, the tableView gets populated with all the names and contacts, but when one person is selected I need to search throughout the entire文件,并提取其余数据。
在我看来,这是一种优化很差的方法,所以我想知道是否有更好的解决方案。
最简单的方法是将数据存储在数据库中 (dB)。 MS Access 是一个很好的初学者 dB,Visual Studio 支持它的可视化编辑器。注意:对于企业解决方案,MS Access 不可扩展。对于专业及以上应用程序,您需要使用 DB,如:SQLServer、Oracle、MySQL 等或 NoSQL DB。
使用像 MS Access 这样的 dB 的优点是在线有很多示例代码,并且许多功能都融入了 Visual Studio 来支持它,比如可视化数据网格视图 (Editor/List)轻松绑定到您的 dB。
我是 C# 的新手,也不知道存储数据选项的必要性。
我想要的是一个显示的程序,它是一个桌面,客户,带有两个列(名称,联系人),然后选择一个人时,它将打开一个新的windows,其余的个人个人信息。
I was thinking of using xml file to store data, and when the program starts, the tableView gets populated with all the names and contacts, but when one person is selected I need to search throughout the entire文件,并提取其余数据。
在我看来,这是一种优化很差的方法,所以我想知道是否有更好的解决方案。
最简单的方法是将数据存储在数据库中 (dB)。 MS Access 是一个很好的初学者 dB,Visual Studio 支持它的可视化编辑器。注意:对于企业解决方案,MS Access 不可扩展。对于专业及以上应用程序,您需要使用 DB,如:SQLServer、Oracle、MySQL 等或 NoSQL DB。
使用像 MS Access 这样的 dB 的优点是在线有很多示例代码,并且许多功能都融入了 Visual Studio 来支持它,比如可视化数据网格视图 (Editor/List)轻松绑定到您的 dB。