Explanation of POCO

前端 未结 3 683
说谎
说谎 2020-12-05 02:33

I\'m wondering if anyone can give a solid explanation (with example) of POCO (Plain Old CLR Object). I found a brief explanation on Wikipedia but it really doesn\'t give a

3条回答
  •  时光取名叫无心
    2020-12-05 03:17

    You need to give more details, such as the context in which you are planning to use POCO. But the basic idea is that you will create simple objects containing only the data/code that is necessary. These objects would not contain any "baggage" such as annotations, extra methods, base classes, etc that might otherwise be required by (for example) a framework.

提交回复
热议问题