简体   繁体   English

使用Silverlight访问在Linux下运行的postgres数据库?

[英]Access with Silverlight to a postgres database running under Linux?

I know we cannot access directly to a database with Silverlight. 我知道我们无法使用Silverlight直接访问数据库。 Linq 2 SQL doesn't exist for Silverlight but can I use other things ? Silverlight不存在Linq 2 SQL,但我可以使用其他东西吗? I heard too about RIA Services and ADO.net but I don't think they are implemented for a Linux Server. 我也听说过RIA Services和ADO.net,但我不认为它们是针对Linux服务器实现的。

Thanks for your future answers. 感谢您将来的答案。

如果您可以创建从数据库公开数据的REST或SOAP Web服务,则Silverlight可以使用其网络堆栈访问该服务。

You will need to put a few things together. 你需要把一些东西放在一起。

First if you want to create a Model then you will be looking for an ORM that works itn Postgresql there a probably a few, I stubbled on Storm but there are probably others. 首先,如果你想创建一个模型然后你将寻找一个工作它的ORM Postgresql可能有一些,我在Storm上发茬,但可能还有其他的。

You will then need to expose the model using SOAP again there are a few implementations of SOAP you could use. 然后,您需要再次使用SOAP公开模型,您可以使用一些SOAP实现。 (In fact at this point I'm going to tweak your tags to target this question better, this not a Linq-To-SQL, c#, or ado.net question). (事实上​​,在这一点上,我将调整你的标签以更好地定位这个问题,这不是Linq-To-SQL,c#或ado.net问题)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM