我如何在Silverlight中添加system.data.sqlclient [英] how i can add system.data.sqlclient in Silverlight

查看:113
本文介绍了我如何在Silverlight中添加system.data.sqlclient的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要在silverlight中添加system.data.sqlclient
但我找不到.我如何添加它.

感谢您的帮助.

hi everyone,

i need to add system.data.sqlclient in silverlight
but i can''t find so. how i can add this.

thanks for any help

推荐答案

您不想在Internet上公开数据库对象,因此,设计上Silverlight不支持system.data.sqlclient.如果需要...,请使用Web服务与数据库进行交互.
You do not want to expose your database objects on the internet, therefore the system.data.sqlclient is not supported on silverlight by design. Use web services to interact with the database if you have to...


hi,
Silverlight设计上不支持system.data.sqlclient,
如果您希望任何与数据库相关的东西使用Webservices,WCF等.

system.data.sqlclient is not supported on silverlight by design,
if you want any DB related things use Webservices,WCF etc..


Silverlight旨在在客户端的浏览器(如果是浏览器内应用程序)上运行,该浏览器主要处理GUI的呈现. System.Data命名空间旨在在服务器上运行,因此不允许将其添加到Silverlight项目中.正如其他人所建议的那样,WCF RIA服务是使用Silverlight与数据进行通信的最佳方式.它们充当GUI和后端数据/业务层的中间层.考虑阅读以下内容: http://www. silverlight.net/learn/advanced-techniques/wcf-ria-services/get-started-with-wcf-ria-services [
Silverlight is meant to run on client''s browser (if its an in-browser app), which mostly deals with the rendering of the GUI. the System.Data namespace is meant to run on the server and hence is not allowed to be added to Silverlight projects. As others have suggested, WCF RIA services are the best ways to communicate with the data using Silverlight. They act as a middle-tier for your GUI and the backend data/business layers. Consider reading this: http://www.silverlight.net/learn/advanced-techniques/wcf-ria-services/get-started-with-wcf-ria-services[^].

Cheers


这篇关于我如何在Silverlight中添加system.data.sqlclient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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