开发者

Entity Framework to WebService

I'm starting to work with Entity Framework as ORM. But my question is: is it correct and possible to map entities between Entity Framework and WebServices?

The question is because we need to query data from a web service (method) to our application, and also we need to consume a webservice (method) to store data; so we want to keep the architecture along the whole application (everything queried and stored using Enterprise Library).

Hope I made myself clear, thanks 开发者_JS百科in advance and if it's possible, give me please some useful information or tutorial for starters.


Doing a deep search on the web, I found out that the answer to my question is: "Not only you can't map entities from a web service to Entity Framework (at least, not as easily as it would be with a database table), but also you shouldn't do it"; because a WebService was not intended for that purpose, it only expose certain members of the whole data, so it's not logical to apply EF structure for only certain part of the data entity itself.

Here is the original post if anybody have the same doubt:

MSDN Forum - Mapping WebService with Entity Framework

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜