如何存储本地窗口应用程序的数据? [英] How store data for local window application?

查看:289
本文介绍了如何存储本地窗口应用程序的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Frnds,



我正在开发一个Windows窗体应用程序,现在我想在该应用程序的客户端系统中保存一些数据,就像在sql中存储一样。 br />


所以,什么是最好和最有效的方法或技术来存储窗口应用程序的应用程序数据。



在我的应用程序中只有读取和创建操作,数据是文本/数字格式,并且需要表结构和关系,数据不是更复杂和安全现在不用担心。



任何想法。



先谢谢。

Hello Frnds,

I am developing a windows form application and now I want to save some data in clients system for that application just like store in sql.

so, whats is best and efficient method or Technic to store application data for window application.

In my application there is only read and create operation, data is in text/numeric format and want table structure and relations of that the data is not more complex and security is not worry now.

Any Idea about that.

Thanks in Advance.

推荐答案

我们能够以真正帮助您的方式回答您的问题,因为您提供的信息太少,无法满足您的需求。

答案取决于on:

- CRUD余额(四个操作中更为密集)

- 种类(文本,数字,blob)和结构(更像DOM或更像表格和关系)您要存储的数据

- 您要存储的数据量

- 安全需求

- 许可

..以及其他一些方面
We can hardy answer your question in a manner that will really help you, since you provided far too few information about your needs.
The answer depend on:
- CRUD balances (which is more intensive of the four operations)
- the kind (text, numeric, blob) and structure (more like DOM or more like tables and relations) of the data you want to store
- the amount of data you want to store
- the security needs
- licensing
..and some other aspects


如果你想在客户端存储你的数据,从Windows应用程序我认为其中一个如此lutions你可以选择。



1.客户端你可以将数据存储到xml文件。

2.你可以设置sql数据库如sql表示客户端并存储数据。

3.您可以将数据以csv格式存储到客户端pc。





如果数据不是太多,那么我更喜欢xml是最好的选择。 XLinq是.NET框架中用于读/写xml文件的非常强大的工具。如果数据量很大并且您需要将数据同步到主数据库服务器,那么您可以使用解决方案2.
From windows application if you want store your data in client side i think one of the 3 solutions you can choose.

1. Client side you can store your data to an xml file.
2. You can set up sql database like sql express to the client and store data there.
3. You can store data as csv format to the client pc.


If data not too much then i prefer xml is the best option. XLinq is very powerfull tool in .NET framework for reading/writing xml file. If data volume is huge and letter you need to syncronous that data to your main database server then you can use solution 2.


这篇关于如何存储本地窗口应用程序的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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