EF POCO Adapter enables Plain Old CLR Objects (POCOs) to be tracked using released version of Entity Framework V1. It consist of a code generator, supporting library and a test suite and examples.
UPDATE: Visual Basic version of the sample is now available in the Downloads section.
Code generator writes an adapter layer that will translate between POCO objects and Entity Framework-aware objects and provide services on top of POCO objects, such as:
- Change tracking (snapshot-based and proxy-based when possible)
- Transparent lazy loading
- Immutable Value Objects
- Queries (LINQ and Entity SQL)
- Shadow state (maintaining certain persistence-related fields outside of entity class)
Entity Framework V1 programming interfaces are wrapped with corresponding APIs that work with POCO objects and do necessary translation between POCO and Persistence-Aware objects.
See
this blog post for more information about the project and its usage.
Submit your feedback using "Discussions" tab.