ErikEJ / EntityFramework6PowerTools

This is the codebase for Entity Framework 6 Power Tools Community Edition, and modern EF 6 providers for SQL Server and SQL Server Compact
Other
183 stars 27 forks source link

Cannot generate Views on EF 6.4.4 #77

Closed garyhalb closed 3 years ago

garyhalb commented 3 years ago

After upgrading to EF 6.4.4 I can no longer generate Views. The error is 'Exception has been thrown by the target of an invocation'.

Tried re-installing, tried on an older version using a lower version of EF and it works fine.

ErikEJ commented 3 years ago

Duplicate of #76 ?

ErikEJ commented 3 years ago

Which "older versions" worked? can you share a repro?

garyhalb commented 3 years ago

This is in VS2015 Community. Tried to create a bare-bones repo, and now getting a Sequence contains no elements error instead. See attached: ClassLibrary1.zip

garyhalb commented 3 years ago

Potentially something to do with Enums in a seperate class.

garyhalb commented 3 years ago

Tried downgrading to 6.2.0 and had the same issue. Finally downgraded back to 6.1.3 and view generation works again.

ErikEJ commented 3 years ago

I am unable to repro with ClassLibrary1 as Startup project, and using VS 2019 latest. (EF 6.4.4) - in other words, view generation works fine for me.

garyhalb commented 3 years ago

I can confirm the same result today. View generation working on the sample, but still not in my main solution. Will try create another repro.

garyhalb commented 3 years ago

What's the easiest way to get you a private repo link?

ErikEJ commented 3 years ago

You can email me at ejlskov at hotmail dot com

garyhalb commented 3 years ago

Thanks, I've done so.

ErikEJ commented 3 years ago

Invalid code in the dervied DbConfiguration class caused this error, latest daily build contains improved error logging.

garyhalb commented 3 years ago

Excellent, thank you so much.