您可以在可移植类库中使用DataSet和DataTables吗 [英] Can you use DataSet and DataTables in a Portable Class Library

查看:80
本文介绍了您可以在可移植类库中使用DataSet和DataTables吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个依赖于DataSet和DataTable的项目.我们希望进入跨平台,因此正在研究便携式类库.但是,我们无法找到如何在可移植类库中使用DataSet和DataTable.有空吗?

I am working on a project that relies on DataSet and DataTable. We wish to move into cross platform so are looking at Portable Class Libraries. However we cant find out how to use DataSet and DataTable in a portable class library. Are they available?

也许我们应该远离数据集和数据表,但是我们现在拥有的东西.

Maybe we should be moving away from DataSets and DataTables but we have what we have right now.

推荐答案

没有Dataset和DataTable是Windows特有的数据结构,它们不会交叉兼容,您可以计划将结果序列化为XML,Json,可以在所有平台上使用,从而实现预期的互操作性,这肯定意味着,与Windows相比,您需要包装器才能将XML/Json反序列化为与诸如DataTable之类的内存对象相关的

No the Dataset and DataTable are quite Windows specific Data structures, they would not be cross compatible, you may instead plan to serialize your result in to XML, Json, which would be available for use in all the platforms, thus achieving the inter-operability as expected, this would surely mean than in Windows you need a wrapper to de-serialize the XML / Json into relevant in memory object like DataTable

这篇关于您可以在可移植类库中使用DataSet和DataTables吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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