Persistence-ignorant Object

What is a persistence-ignorant object?

It’s an object that is not aware of any persistence. It doesn’t know if it will be persisted with a database (or which one), neither if it will be saved in a XML file or a binary one. It’s ignorant of that information. A POCO object is a persistence-ignorant class.

POCO mean “Plain Old CLR Object”

You can have POCO or peristence-ignorant object with Entity Framework.

If you like my article, think to buy my annual book, professionally edited by a proofreader. directly from me or on Amazon. I also wrote a TypeScript book called Holistic TypeScript

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.