The construct type obtained from DbContext cannot be found in the selected file (EF Power Tools Beta 2 + VS 2012))

I am using VS 2012 (Ultimate) along with Entity Framework Power Tools Beta 2 and entity framework 5.0 (using nuget).

I created a DbContext class. When I right-click on the corresponding file in the solution explorer and select "Entity Framework / View Entity Data Model (read-only)", I get the error message "Unable to find constructive type from DbContext in the selected file." bug in VS 2012.

I tried the workaround described at http://blogs.msdn.com/b/adonet/archive/2012/04/09/ef-power-tools-beta-2-available.aspx but my registry does not contain the key " {BFC24BF4-B994-4757-BCDC- 1D5D2768BF29} "in" HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \ 11.0_Config \ BindingPaths \ ".

After restarting the visual studio and the next steps, a dialog box opens that indicates that "The exception was selected as the target of the call."

BTW. I can run my test application, which creates a database from my DbContext, and O can insert / delete / etc data in this database.

Any help / tips would be greatly appreciated.

Regards, Merijn

+3
source share
4 answers

VSCommands Visual Studio 2012 . , EF Power Tools. EntityFramework.dll VS, DbContext.

+4

Brice, Visual Studio. VSCommands . , Visual Studio.

Brice EF !

+3

, , , - , "-- "!

0

Visual Studio. Visual Studio Git ( 1.0.0.0).

, VS2012, EF .

0

All Articles