问题
Im using EF Code first and i generate my model by "EF 4.x DbContext Fluent Generator for c#" extension in vs2010. but when i want to view my Entity model via EF Power tools i get this error:"Sequence Contains no matching element". is there any idea?
回答1:
It's a bit too late and not sure if this would help but for others and historic reasons...
I had the same issue (with Beta 3 - and .NET 4/2010/EF5 etc.) - the solution was relatively simple.
I just moved out the project from the 'solution directory' into the root of the solution.
I 'learned' that trick from dealings with 'migrations' and PM console - it wouldn't work if you have a lib (entities) - and your startup/executable - while any of the two is in a solution dir somewhere.
来源:https://stackoverflow.com/questions/14586061/why-when-i-want-use-ef-power-tools-for-view-my-model-i-get-error