07-23-2023, 08:13 AM
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
context.Connection.BeginTransaction(isolationLevel);
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?
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
context.Connection.BeginTransaction(isolationLevel);
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?