1

MVC 3 web being built in VS2012 Update 1, connected to MySQL db.

I added an ado.net entity model as usual and all was fine until I realized the auto generated classes were not updating despite this bug supposedly being fixed in the VS Update 1. Anyway, I ended up deleting all the entity files (.context.tt, .designer.cs, .tt & the ed,x.diagram) I also deleted the ' connection string from the webconfig.

I then started over, added a new ado.net entity model, etc, but it keeps trying to add a 1 to the end of the name (same as the last one), so i assume there is still some reference to the old entity model in there somewhere.

Where are all the references,s o I can delete them? Is there a better way around this? I guess I could just choose a completely different name for the entity model, but that seems cheesey.

Oh and one other thing, I grabbed EF 5.0 with nuget, but in the project references, and all through the web config, it is referencing ef 4.4. Could this be part of the issue?

4
  • Normally, version 4.4 of EF will be referenced if you only have .NET 4 and not .NET 4.5.. check your project properties and see what version you are targetting Commented Apr 7, 2013 at 1:41
  • As for the connection string with a "1" on the end.. this may be a dumb question, but have you tried to find any references the old connection string by using "Find" and searching entire solution? Commented Apr 7, 2013 at 1:43
  • Matt - Thanks, I checked and I am using .net 4.0. Do you know if it is possible to switch frameworks mid-coding? And yes, I had done the 'find in files' thing, but I did it again and now all is good, so I must have missed something the first time through. If you want to enter as an answer, I will mark it. Commented Apr 8, 2013 at 14:44
  • I have added it as an answer. Glad I could help. :-) Commented Apr 15, 2013 at 3:12

1 Answer 1

1

Normally, version 4.4 of EF will be referenced if you only have .NET 4 and not .NET 4.5.. check your project properties and see what version you are targeting

As for the connection string with a "1" on the end.. this may be a dumb question, but have you tried to find any references the old connection string by using "Find" and searching entire solution?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.