我如何将我的Silverlight DataGrid内容转换为xml格式并将其保存到数据库 [英] How can i convert my silverlight datagrid contents to xml format and save it to database

查看:107
本文介绍了我如何将我的Silverlight DataGrid内容转换为xml格式并将其保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过XML格式将silverlight datagrid内容传递给DB.有人可以帮我吗?

I want to pass silverlight datagrid contents to DB by xml format. Can anybody help me?

推荐答案

安姆姆,

为什么要以XML格式传递内容?相反,您可以将数据作为收集对象传递并将其存储在DB中.在这种情况下,EntityFramework将为您提供很大帮助.

让我知道,如果您有任何疑问.
Hi Ammu,

Why do you want to pass the contents as an XML format? Instead you can pass the data as a collection object & store those in DB. In that case the EntityFramework will help you a lot.

Let me know, if you have any queries.


AFAIK,您将需要自己构建一个xml.
我还没有遇到任何可以将datagrid内容转换为xml字符串的实用程序.
AFAIK, you will need to build an xml yourself.
I have not come across any utility that can convert datagrid content to an xml string.


这篇关于我如何将我的Silverlight DataGrid内容转换为xml格式并将其保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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