poco理解

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对象。 

 

 

你可能感兴趣的:(oc)