poco理解

本文介绍了POCO(Plain Old CLR Object)的概念及其与Java世界中POJO(Plain Old Java Object)的关系。POCO是一种.NET框架下的设计理念,强调简单、无依赖的对象设计,便于开发人员理解和使用。

POCO is an acronym for Plain Old CLR Object. It is a play on the term POJO, from the Java EE programming world, and is used by developers targeting the Common Language Runtime of the .NET Framework. Similar to the Java context, the term is used to contrast an object with one that is designed to be used with a complicated, special object frameworks such as an ORM component. In .NET terms, the word is most often used in the programmatic sense, to differentiate a non Serviced Component (see MTS) from a "standard object". It can also be used in a tongue in cheek manner, referencing the perceived complexity of Java based programming frameworks such as EJB 

 翻译:(有错误地方请指正)

poco是“Plain Old CLR Object”首字母的缩略语,意思是简单传统的CLR对象。他来源于javaEEPOJO思想,被开发商针对通用语言运行时的.net架构,类似的Java语境中,这个术语是用来对比被使用一个复杂的、特定的对象架构 ORM组件的对象设计。在.net术语中,这个词是最常用于纲领性意义来说,区分出非服务组件(MTS)从“标准”的对象。还可用于语言检测,参照领会Java基础设计的复杂性例如EJB

 

总结:

1.所谓的POCO就是那些不包括INSERTADDDEL等数据持久化操作的以及不包括任何业务逻辑功能,只有GetSet的实体类。

2.POCO的概念是从javaPOJO借用而来,而两者的含义是一致的,不同的仅仅是使用的语言不一样。所以POCO的解释就是“Plain Old C# Object”

3.POJO的内在含义是指那些没有从任何类继承、也没有实现任何接口,更没有被其它框架侵入的java对象。 

 

 

转载于:https://www.cnblogs.com/yjg8116/archive/2011/12/29/2306121.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值