I am just starting out on Entity Framework 4.1 Code-First. I have created my classes and DbContext
, and they work perfectly fine. Right now I want to bind my ListView to my Entities, with the help of an EntityDataSource
, but unfortunately it does not recognise any available connection strings! I think the providerName must be System.Data.EntityClient
for it to work, but I have no concrete entity model to reference to...
I have read that an ObjectContext
can be "adapted" from the DbContext
, which in turn can be used to create an ObjectDataSource
. I want to use my DbContext
to bind to my ListView, however. Is there any way I can do this?