开发者

POCO Entity Framework

开发者 https://www.devze.com 2023-03-04 18:14 出处:网络
What is the importance of POCO support in Entity Framework? Maybe its better t开发者_C百科o ask What is the uses of POCO ?Actually POCO is similar to POJO (Plain old java objects) in .net world. POCO

What is the importance of POCO support in Entity Framework?

Maybe its better t开发者_C百科o ask What is the uses of POCO ?


Actually POCO is similar to POJO (Plain old java objects) in .net world. POCOs are objects tha don't have to follow any particular conventions (implementing any interface ,extending any class,having special attributes or naming convention etc.)

Some of the persistent frameworks force us to use specific interfaces or attirbutes , abstract classes. This is not a problem as long as you are working on a project from scratch and you are choosing which framework to use but if you are working on a legacy system and want to change its data access layer to use a persistent framework , it might have a negative impact.


Realy short: That you have objects that didn't know anything about the EntityFramework but are bound to it (Bound to the context so that the EntityFramework can take care).

0

精彩评论

暂无评论...
验证码 换一张
取 消