WCF比实体框架更轻巧

WCF比实体框架更轻巧

本文介绍了WCF比实体框架更轻巧/快速吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最终实现中,WCF是否比EF轻(字节)/快(毫秒)?我想是因为EF是基于WCF的,但是实现WCF需要更多的用户代码.

In the final implementation, is WCF lighter (bytes) / faster (msec) than EF? I am assuming it is since EF is WCF based, but more user code is needed to implement WCF.

推荐答案

>>在最终实现中,WCF是比EF更轻(字节)/更快(毫秒)吗?我想是因为EF是基于WCF的,但是实现WCF需要更多的用户代码.

>>In the final implementation, is WCF lighter (bytes) / faster (msec) than EF? I am assuming it is since EF is WCF based, but more user code is needed to implement WCF.

您无法比较两者-它们是完全不同的野兽,在许多解决方案中,它们将协同工作,但无法相互比较.

You cannot compare the two - they're totally different beasts, and in many solutions, they will be working together, but cannot compare with each other.

  • Entity Framework是一个OR映射器,使您的数据库访问更加容易;您可以将其与例如NHibernate,Linq-to-SQL,Subsonic,Genome或其他OR映射器

  • Entity Framework is an OR mapper to make your database access easier; you can compare this to e.g. NHibernate, Linq-to-SQL, Subsonic, Genome, or other OR mappers

WCF 是通过HTTP/REST将数据模型公开给外界的一种方法;将此与传统的ASMX Web服务,纯WCF服务,其他服务技术进行比较

WCF  is a way to expose your data models to the outside world over HTTP/REST; compare this to legacy ASMX webservices, pure WCF services, other service technologies

有关更多详细信息,请检查以下链接:

For more detailed information, please check the following link:

WCF数据服务或实体框架

以下是使用实体框架作为后端ORM实现简单WCF服务的示例.

Here is a sample implement a simple WCF Service using Entity Framework as the backend ORM.

http://www.codeproject.com/Articles/127395 /使用实体框架实施WCF服务

希望有帮助!

最诚挚的问候,

克里斯汀


这篇关于WCF比实体框架更轻巧/快速吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 13:00