我如何在Silverlight中添加system.data.sqlclient

编程入门 行业动态 更新时间:2024-10-24 12:33:01
本文介绍了我如何在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和后端数据/业务层的中间层.考虑阅读以下内容: www. silverlight/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: www.silverlight/learn/advanced-techniques/wcf-ria-services/get-started-with-wcf-ria-services[^]. Cheers

更多推荐

我如何在Silverlight中添加system.data.sqlclient

本文发布于:2023-11-17 06:52:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   Silverlight   system   data   sqlclient

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!