Plain Old CLR Object

Plain Old CLR Object or POCO 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 a simple object with one that is designed to be used with a complicated, special object frameworks such as an ORM component. Another way to put it is that POCOs are objects unencumbered with inheritance or attributes needed for specific frameworks[1]. 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 and invasiveness of Java-based programming frameworks such as the legacy EJB2.

POCO is often incorrectly expanded to Plain Old C# Object, but POCOs can be created with any language targeting the CLR. An alternative acronym sometimes used is PONO[2], for Plain Old .NET Object, leading also to the possiblity of POPO; or Plain Old PHP Object. [3] [4]

References

  1. ^ See, for example, this MSDN article: Data Contracts - POCO Support
  2. ^ See, for example, a reference to PONO in this whitepaper: Spring.net Reference Documentation
  3. ^ http://jan.kneschke.de/2007/2/19/typesafe-objects-in-php/
  4. ^ http://jym.sg/controller-with-bare-bone-plain-old-php-objec