Dictionary entry

POCO

nouncomputingtechnical

Last updated

UK/ˌpiː əʊ siː ˈəʊ/
US/ˌpiː oʊ siː ˈoʊ/

Meanings

  1. nouncountablecomputingtechnical

    In .NET programming, a simple object that holds data and has no framework-dependent behavior or special base class.

    Grammar: Countable: use a POCO, two POCOs, or the POCO. It is often used before another noun: a POCO class.

    Patterns

    • a POCO class
    • a POCO object
    • use a POCO
    • convert something to a POCO

    The API returns a POCO that the client can read without any special libraries.

    In this tutorial, we create a POCO to represent a customer order.

    Because it is a POCO, the object is easy to test and serialize.

  2. nouncountablecomputingtechnical

    A plain object in object-oriented programming that contains only properties or fields, with no business logic.

    Grammar: Countable; often used in the plural: POCOs are lightweight.

    Patterns

    • a POCO with properties
    • use POCOs for data transfer
    • POCOs and entities

    The team replaced the heavy framework objects with POCOs to keep the code simple.

    A POCO usually has public properties and a parameterless constructor.

    We map the database rows to POCOs before sending them to the view.

Word forms

pluralPOCOs

Common combinations

a POCO class
The POCO class has only auto-implemented properties.
a POCO object
The POCO object is serialized to JSON automatically.
use a POCO
You should use a POCO instead of a framework-specific type.
convert something to a POCO
The mapper converts the entity to a POCO.
POCOs and entities
The article explains the difference between POCOs and entities.

Synonyms and how they differ

plain object
A general term for an object with only data; POCO is the specific .NET acronym.
data transfer object
A DTO is designed for moving data between layers, while a POCO simply has no framework dependencies.
POJO
POJO is the Java equivalent; use POCO when you are talking about .NET.

Commonly confused: POCO or POJO?

POCO vs POJO

POJO stands for Plain Old Java Object and is used in Java; POCO is the .NET term. Do not mix them in the same project discussion.

Practice

Which sentence uses POCO correctly?

Make it your own

Write a sentence using “POCO”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words