ASP.NET MVC- Bizarre problem - suddennly lost all LINQTO SQL data context objects?

Verify that your "entities.desinger. Cs" class was auto generated if not go to the . Dbml file and right click on run custom tool to generate it.

I don't see that file in my project however I don't see it in an old version of the project either. I did a Run Custom Tool anyway but it did not seem to have any effect. – MikeD May 27 '10 at 5:49 Well the name may not be entities.designer.Cs, that would depend on the name you give to your dbml file.

In this desinger. Cs file you have all the autogenerated classes for your db tables. Verify that the file contains the "equipment" class – alejandrobog May 27 '10 at 6:07 Sorry - right I do have an file with that name and it does contain the equipment class as well as all the other classes.

Can't understand why my other project files can't resolve this. – MikeD May 27 '10 at 6:14 Are these classes on the same namespace that your code expect? – alejandrobog May 27 '10 at 6:18 That was it - for some reason the namespace in my designer.

Cs file was simply Models instead of ULS_Site. Models which had previously been. I modified the namespace line in the code and it worked.

Thanks so much for your help with this. Any idea why the project name was left off my autogenerated file? Thanks again.

– MikeD May 27 '10 at 6:28.

1149 System.Data.Linq.SqlClient.SqlVisitor. Visit(SqlNode node) +2136 System.Data.Linq.SqlClient.SqlVisitor. +11 System.Data.Linq.SqlClient.SqlVisitor.

+11 System.Data.Linq.SqlClient.SqlVisitor. +11 System.Data.Linq.SqlClient.SqlVisitor. +34 System.Collections.Generic.

List1..ctor(IEnumerable1 collection) +315 System.Linq.Enumerable.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions