I am upgrading my practice Entity Framework code to v4.1. In old version, I had my context class deriving from ObjectContext but with new release of EF 4.1, they have provided a good DbContext API.
I am basically trying to convert the code so that it works from Database First approach to Code First approach. Playing around with EF 4.1
In old code, I had something like
where the context Type was deriving from ObjectContext.
In v4.1 I haven't got access to Connection property from context. How can I do that?
It is in the DbContext and it should be public.
In the brave new .Net Core world, you can use: