This project has moved and is read-only. For the latest updates, please go here.

How to MEf the DataAccess (persistence layer) without EF

May 29, 2012 at 8:34 PM


I'm hacking through the BookLibrary and try to figure out how and where I can "detach" the sample from EF and use MEF to dynamicly attach a custom DataAccess.

So far I see that the EntityController seams to be the class to use for this 'cause this has been mocked for testing.

My goal is that the user can choose between a local or remote persistence when starting the app.

It may be the hours of trying to understand the sample but I really can't see how to accomplish this.

Hope you have any ideas,