Jump to content

Plain old CLR object

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Addbot (talk | contribs) at 04:02, 15 March 2013 (Bot: Migrating 2 interwiki links, now provided by Wikidata on d:q7200621). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 framework 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.

See also

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