什么是存储在C#应用程序数据的最佳方式 [英] What is the best way to store data in c# application

查看:167
本文介绍了什么是存储在C#应用程序数据的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打食谱应用程序存储和读取(和更新)的食谱,或其他任何练习OOP编程和思考。但是,我不知道,是什么存储数据,在这种情况下方式,食谱,在C#(Visual Studio速成)是最好的。
我想在程序优化保存和读取数据,但我没有经验。什么是最好的办法吗?它是通过XML,SQL,或只是简单的TXT?或者一些其他的方式?

I want to make Cookbook application for storing and reading (and updating) recipes, or anything else to practice OOP programming and thinking. But, I am not sure, what way of storing data, in this case, recipes, is the best in c# (Visual Studio Express). I want to optimize saving and loading data in program, but I have no experience. What is the best way? Is it through XML, SQL, or just plain TXT? Or some other way?

推荐答案

我会建议使用SQLEXPRESS一个的LocalDB。

I would suggest using a localDB in SqlExpress.

Microsoft®SQLServer®上2012 Express是一个功能强大且可靠的免费
的数据管理系统,可提供丰富,可靠的数据存储
轻型网站和桌面应用程序

Microsoft® SQL Server® 2012 Express is a powerful and reliable free data management system that delivers a rich and reliable data store for lightweight Web Sites and desktop applications.

http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express。 ASPX

的http:// technet.microsoft.com/en-us/library/hh510202.aspx

您也可以看看这个类似的question

You could also look at this similar question.

下面作为的 XML DB与这表明XML是节节败退。

Here as an article on XML vs. DB which shows XML is losing ground.

这篇关于什么是存储在C#应用程序数据的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆