本文介绍了最佳实践WCF服务 - Windows Azure的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何保存在Windows的一些元数据通过使用Azure的WCF服务窗体应用程序的SQL Azure数据库?

How can i save some metadata from a windows forms application to an SQL Azure Database by using an Azure WCF service?

如果我有100个客户,将在同一时间或不同的时间保存元数据来访问数据库中的WCF服务...什么是执行本的最佳方式?

If I have 100 clients that will access the WCF service at the same time or different time saving this metadata to the database ... what is the best way of implementing this?

客户端将传递给WCF服务序列化的元数据(XML或JSON),Web服务将反序列化,并将其保存到SQL Server数据库。该消息把我的客户端将发送一个唯一的ID的服务与被服务之前进入如果潮头ID的存在与否元数据的SQL数据库whill检查。

The client will pass to the WCF service the metadata serialized (XML or JSON), web service will deserialize it and save it to the SQL Server db. The message sent my the client will send an unique ID to the service and before the service enters the metadata to the SQL db whill check if that uniqe ID exists or not.

任何帮助,这将是非常美联社preciated!

Any help with this will be highly appreciated!

谢谢!

推荐答案

这听起来像你对我解答您的问题,当你问吧!在这里您的解决方案看起来几乎一模一样,你会在premises做什么。

It sounds to me like you answered your question when you asked it! Your solution here would look almost identical to what you'd do on premises.

创建一个 WCF服务Web角色和实施服务为您在premises运行时会,并部署到 Windows Azure的。在您的服务方法,使用 ADO.NET/Entity框架/ LINQ到SQL 来写 SQL Azure数据库就像你到导通premises的SQL Server。在您的Windows窗体应用程序创建一个服务代理在Azure托管服务,并调用WCF方法传递您的序列化的元数据。

Create a WCF Service Web Role and implement your service as you would when running on premises, and deploy that to Windows Azure. Within your service method, use ADO.NET/Entity Framework/Linq-to-SQL to write to the SQL Azure database just as you would to a on-premises SQL Server. In your Windows Forms application create a service proxy to the Azure hosted service and invoke the WCF method passing in your serialized metadata.

有你被困在建筑的特定部分?

Is there a particular part of the architecture you're stuck on?

这篇关于最佳实践WCF服务 - Windows Azure的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 05:55
查看更多