C Sharp,数据集和xml [英] C sharp,dataset and xml

查看:91
本文介绍了C Sharp,数据集和xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,我现在要为一个百货商店做一个项目,因为我必须将我的数据存储到xml,并且每当与服务器建立连接时,我都必须将数据存储到数据库.怎么做?我没有任何想法.

Hi friends now i am going to do a project for a departmental store for that i have to store my data to xml and whenever connection established with the server i have to store the data to database. How to do it? I don''t have any idea.

推荐答案

这不是问题,这是一个任务.

没有一个特别的秘密可以通过一个或两个答案来指导您.分别了解每个方面,进行所有设计和开发工作,然后在遇到任何问题时询问您.这是CodeProject真正可以有效帮助您的地方.

—SA
This is not a problem, this is a task.

There is no special secrets which can be conducted in one or two answers to direct you at once. Learn about each aspect separately, do all the design and development work and then ask your questions of you face any problems. This is where CodeProject can really help you effectively.

—SA


按照SA的建议进行操作.
一些很好的链接是 LINQ to XML [SqlConnection [
Do as SA suggests.
Some good links are LINQ to XML[^] for storing and retrieving XML data in a file and SqlConnection[^] database connection (but it depends on what type of database you use)


正如我在评论中所说,您会在Google中找到很多想法.您提到您对如何进行项目一无所知.您需要阅读一些有关如何创建软件应用程序的信息(即从计划阶段到实施和维护).假设您将使用C#(如标记中所示),则可能还需要阅读有关ADO.Net的信息.见下面的链接.它还提供了一些示例代码供您入门.

为初学者使用ADO.NET [
As I said in my comment, you''ll find lots of ideas in Google. You mentioned that you dont have any idea on how you will do your project. You need to do some reading about how software applications are being created(i.e. from planning phase to implementation and maintenance). Assuming you are going to use C#(as what is indicated in the tag), you might also need to read about ADO.Net. See below link. It has also some sample codes for you to have a headstart.

Using ADO.NET for beginners[^]


这篇关于C Sharp,数据集和xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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