architecture – POCO’s – Are they associated with a specific Design Pattern (or patterns)? – Education Career Blog

Just wondering if the use of POCO’s is associated with a particular design pattern.

,

I think that POCOs and POJOs are examples of the Single Responsibility Principle (principles are something like design patterns but more general). Say Person POCO can have one reponsibility: storing person data, but for example, if we add persistence to POCO, it won’t be POCO any more, and will have 2 responsibilities: storing person data and persisting it.

,

POCOs are usually mentioned in the context of persistence ignorance. It can be used to implement the Unit Of Work pattern.

Leave a Comment