1

Recently I have migrated to EF6 alpha 3 and when I use EF Power Tools Beta 3 for "Generate Views" for my context to get faster startup , I get this error message :

---------------------------
Exception has been thrown by the target of an invocation.
---------------------------

I was using it before migration without any problem.

Any suggestions? Thanks in advance...

Arash
  • 11
  • 3
  • I had the same issue, and posted my answer here: http://stackoverflow.com/questions/16959529/generating-code-first-views-with-oracle It may help – Nick Jun 10 '13 at 11:47

1 Answers1

0

If you are using code first approach then make sure your DbContext class must have a public parameterless constructor.

Mohammad Zare
  • 1,489
  • 7
  • 25
  • 45
  • In my last version code it didn't have such a constructor but it was working well, anyway now I am using Threading for fetching first query from DB and it works fine. Thanks – Arash Sep 23 '13 at 10:14