Is there any other ways so i can get the data from mysql database to show in a datagridview in a Silverlight application without using Webservice like WCF webservice .?
有没有其他方法可以让我从mysql数据库中获取数据,以便在不使用Web服务(如WCF webservice)的情况下在Silverlight应用程序的datagridview中显示。
1 个解决方案
#1
Silverlight is a client side web technology and as such cannot access a database directly. Web services are normally the best way to access the data you want but I guess you could get creative using an elevated trust application and reading from the file system in some kind of hacky way but that's not going to be a good idea!
Silverlight是一种客户端Web技术,因此无法直接访问数据库。 Web服务通常是访问所需数据的最佳方式,但我猜你可以使用提升的信任应用程序并以某种hacky方式从文件系统中读取文件,但这不是一个好主意!
#1
Silverlight is a client side web technology and as such cannot access a database directly. Web services are normally the best way to access the data you want but I guess you could get creative using an elevated trust application and reading from the file system in some kind of hacky way but that's not going to be a good idea!
Silverlight是一种客户端Web技术,因此无法直接访问数据库。 Web服务通常是访问所需数据的最佳方式,但我猜你可以使用提升的信任应用程序并以某种hacky方式从文件系统中读取文件,但这不是一个好主意!