Silverlight数据库连接问题 [英] Silverlight Database connecting issue

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

问题描述



我试过使用sqlce,但是这不工作。我尝试了很多博客,但仍然不工作。



以及MS Access也没有连接,所以有outofbroser应用程序的任何解决方案



我真的陷入困境。 beacause我使用隔离存储,但它仍然没有提供ID,所以没有使用它的范围。



这是真的很难的问题,我使用silverlight。 >

有这个如何连接数据库与silverlight的任何解决方案。



谢谢... !!

解决方案

是的,总是有一个解决方案。



Silverlight不支持数据库连接,我知道这看起来很奇怪,但它是非常好的很多原因。



解决方案是创建一个WCF服务,并使用它来获取数据



Silverlight< ---> WCF服务< ---> SQL Server



这是一个简单的例子:
在Silverlight中使用WCF服务



这里是高级的:
使用WCF RIA服务


Hello guys I am working on silverlight and I have issue regarding on database connectivity.

I had tried with sqlce, but this is not working. I was tried with much of blog but still is not working.

so as well as MS Access also not connecting so is there any solution for the outofbroser application

I am really getting stuck. beacause I am using Isolation storage but it's still not providing ID so there is no scope to use it.

It's really solid problem I am suffering to using silverlight.

Is there any solution for this how to connect database with silverlight.

Thanks...!!

解决方案

Yes, always there is a solution.

Silverlight does not support Database connectivity, I know it seems weird but it is very good for a lot of reasons.

The solution is to create a WCF Service and use it to get the data.

Silverlight <---> WCF Service <---> SQL Server

Here is a simple example: Consuming WCF Services in Silverlight

and here is an advanced one: Using WCF RIA Services

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

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