how we can fetch the data from the database through Silver light? I want the basics only. because i am a fresher in silver light.
我们如何通过Silver light从数据库中获取数据?我只想要基础知识。因为我是一个更新鲜的银光。
2 个解决方案
#1
It depends a little on the version of Silverlight that you are using. In any case, there are some very good and comprehensive tutorials out there on the web. Here are a few that will be of interest:
它取决于您使用的Silverlight版本。无论如何,网上有一些非常好的和全面的教程。以下是一些有趣的内容:
http://silverlight.net/learn/tutorials/sqldatagrid.aspx
http://www.simple-talk.com/dotnet/.net-framework/data-and-silverlight-2-data-binding/
#2
Expose your data through a WCF service.
通过WCF服务公开您的数据。
Have a look at this tutorial: Displaying SQL Database Data in a DataGrid using LINQ and WCF.
看看本教程:使用LINQ和WCF在DataGrid中显示SQL数据库数据。
Also:
-
Service-Driven Apps With Silverlight 2 And WCF
使用Silverlight 2和WCF的服务驱动的应用程序
-
Brad Abrams's Business Apps Example for Silverlight 3 RTM and .NET RIA Services
Brad Abrams的Silverlight 3 RTM和.NET RIA服务的业务应用程序示例
-
.NET RIA Services / WCF Services
.NET RIA服务/ WCF服务
#1
It depends a little on the version of Silverlight that you are using. In any case, there are some very good and comprehensive tutorials out there on the web. Here are a few that will be of interest:
它取决于您使用的Silverlight版本。无论如何,网上有一些非常好的和全面的教程。以下是一些有趣的内容:
http://silverlight.net/learn/tutorials/sqldatagrid.aspx
http://www.simple-talk.com/dotnet/.net-framework/data-and-silverlight-2-data-binding/
#2
Expose your data through a WCF service.
通过WCF服务公开您的数据。
Have a look at this tutorial: Displaying SQL Database Data in a DataGrid using LINQ and WCF.
看看本教程:使用LINQ和WCF在DataGrid中显示SQL数据库数据。
Also:
-
Service-Driven Apps With Silverlight 2 And WCF
使用Silverlight 2和WCF的服务驱动的应用程序
-
Brad Abrams's Business Apps Example for Silverlight 3 RTM and .NET RIA Services
Brad Abrams的Silverlight 3 RTM和.NET RIA服务的业务应用程序示例
-
.NET RIA Services / WCF Services
.NET RIA服务/ WCF服务