Pre generating views error 7001, validate model no errors

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
dsmoyer
Posts: 2
Joined: Mon 21 Feb 2011 19:06
Location: Reading PA

Pre generating views error 7001, validate model no errors

Post by dsmoyer » Fri 25 Feb 2011 13:09

When having the model generator pre generate views, there is only one line in the file that states the index is out of bounds.

When running it with the command line, it has the same error but it says it is error 7001.

Opening the model and doing a validate shows no errors.

How can I fix this issue so that views can be generated?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 25 Feb 2011 15:04

This problem is associated with the View Pregeneration mechanism. Our code does not participate in this process.
Upgrading to Entity Framework v4 can solve the problem (there were some improvements in it).
This problem can be solved by some modification of the model as well, e.g., like here.

dsmoyer
Posts: 2
Joined: Mon 21 Feb 2011 19:06
Location: Reading PA

Post by dsmoyer » Fri 25 Feb 2011 15:49

The error I get is index is out of bounds not Object reference not set to an instance of an object.

I can repeat this when I try and validate the model. Isn't it your code that validates the model?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 25 Feb 2011 16:55

Could you please send the model to support * devart * com (subject: EF Index Out of Range)?
We will investigate the reasons of this situation.
One more thing: is the error reproducible using the latest build of dotConnect?

Post Reply