难以理解 Silverlight 和 SQL
我一直在阅读大量内容,但不知道如何将其应用到我的场景中。 我希望能够拥有一个 SQL 文件/服务器、SQLite 或 SQL Server,并将其放在服务器上,以便 Silverlight 连接并执行某些查询,因为有多个用户将使用该程序。
我已经有一个使用 Expression Blend 构建的项目,但我不知道如何设置 Web 服务来定位 SQLite 文件或指向服务器。谁能提供一个简单的步骤来说明我如何能够使用 Silverlight 访问服务器端?
I've been reading loads but can't figure out how to apply it to my scenario.
I would like to be able to have a SQL File/server, SQLite or SQL Server and have that on the server for Silverlight to connect to and perform certain queries as more than user will be using the program.
I already have a Project built with Expression Blend, but I don't know how to set up the Web Service for either locating the SQLite file or pointing to the server. Can anyone provide a simply step by step to how I would be able to gain access to the server side with Silverlight?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很简单,您无法通过 Silverlight 直接连接到数据库;您只能连接回为 Silverlight 应用程序提供服务的 Web 服务器,然后该服务器可以连接到您的数据库并返回结果。
为此,您将使用 WCF 或 RIA 来连接回服务器,然后最终连接到数据库。
Quite simply, you cannot connect directly to a database through Silverlight; you can only connect back to the web server that served up the Silverlight application and then that server can connect to your database and return the results.
In order to do this, you would use either WCF or RIA in order to connect back to the server and then ultimately to your database.