SharePoint Nick

writings about SharePoint and running a software business
posts - 53, comments - 64, trackbacks - 0

Linq to SQL class designer.cs file deleted

I’ve been working on my ASP.NET MVC project recently (more about that to come later) and I’ve been having a problem that whenever I added a new table to my Linq to SQL class when I compiled the project the designer.cs file would be deleted and I’d be listed with 100’s of errors. It seems this is a known bug and all you need to do to get around it is go into your cs file where you are added custom business logic and move the using statements to be within your namespace definition.

Fixes the problem which means a relieved Nick!

Print | posted on Saturday, November 22, 2008 6:58 PM |

Feedback

Gravatar

# re: Linq to SQL class designer.cs file deleted

I had the same problem. Deleting the property values Context Namespace and Entity Namespace of the DataContext helped.
1/14/2009 3:23 AM | Jake

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 5 and type the answer here:

Powered by: