Silverlight中的数据库连接 [英] DataBase connection in silverlight

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

问题描述

我想要在Silverlight应用程序中连接SQL Server的示例代码.

i want example code for connection sql server in silverlight application.

推荐答案

Silverlight不会直接连接到数据库.它使用WCF与数据库对话.

在此处阅读有关Silverlight的基础知识: Silverlight简介 [ Silverlight的Google搜索结果 [
Silverlight does not connect to the database directly. It uses WCF to talk to the database.

Read about basics of Silverlight here: An Introduction to Silverlight[^]

For examples and samples look here: Google result for Silverlight[^]

Try!


Silverlight包含WCF数据服务客户端库,使您可以从公开了开放数据协议(OData)提要的任何服务中访问数据.
参考链接:-
MSDN- [WCF数据服务(Silverlight)] [ ^ ]
您还可以查看 this- [使用Silverlight进行数据库操作] [
Silverlight includes a WCF Data Services client library that enables you to access data from any service that exposes an Open Data Protocol (OData) feed.
Reference Link :- MSDN-[WCF Data Services (Silverlight)][^]
You can also take a look at this-[Database Operation with Silverlight][^] article


首先请检查此链接.您对
的每个步骤都有详尽的描述
要下载的源代码.请在此处查看.

http://swayingtheworld.blogspot.com/2011/08/accessing-databases-in- silverlight.html [ ^ ]
first go and check this link. you have elaborate description for each steps with

source code to download.check it out here.

http://swayingtheworld.blogspot.com/2011/08/accessing-databases-in-silverlight.html[^]


这篇关于Silverlight中的数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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