POCO - if POCO means pure .net class with only properties, where i can write validations in MVC

后端 未结 3 1398
遇见更好的自我
遇见更好的自我 2021-01-17 03:26

Very new to POCO, find some google links but found many different stories. Some connected with Entity framework, lazy loading etc. Some says its a pure .det class. Atleast

3条回答
  •  逝去的感伤
    2021-01-17 03:44

    POCOs mean you do not have to inherit from some framework defined base class in order to implement functionality. Basically you are free to design your class hierarchy.

    You can add your own methods be it validation or some business logic.

    A counter example would be to inherit from EntityObject class for entities in Entity Framework.

提交回复
热议问题