[英]Can I access a remote Database through webservice? C# winforms
Lately I asked this question regarding connecting my window app to a remote database (MySQL) hosted by some free hosting site. 最近,我问了一个有关将我的窗口应用程序连接到某个免费托管站点托管的远程数据库(MySQL)的问题。 And I got "No way" answers.
我得到了“没有办法”的答案。
How about using a webservice? 如何使用网络服务? Is it possible now?
现在可以吗?
Ok (and probably assuming .NET 4.0 on you hosting provider) this should be fairly straightforward: 好的(并且可能在您的托管服务提供商上假设.NET 4.0),这应该非常简单:
Biggest challenge there will be building the EF model - you really want a local instance of the MySQL database - schema at least - to develop against. 最大的挑战将是建立EF模型-您确实希望针对MySQL数据库的本地实例(至少是架构)进行开发。
Yes if your webservice is hosted on same server which contains mysql database. 是,如果您的Web服务托管在包含mysql数据库的同一服务器上。 You can locally connect to mysql using webservice (which hosting providers allow for sure) and can server data using the service.
您可以使用webservice在本地连接到mysql(托管服务提供商肯定会允许),并且可以使用该服务来服务器数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.