LINQ to SQL Designer Bug

Every time that I change a value in the designer after saving it, the .designer.cs file will be deleted.

Can anyone tell me how can I fix this problem?


将DataContext.cs和DataContext.designer.cs文件中的'指令'移动到'名称空间'定义中。


The *.designer.cs files are completely generated by designer. You should not write any your own code into this file. The classes and/or methods are partial, so you can extend/change the behaviour in the separate file.


不要将自己的代码放在设计器文件中,而要使用利用部分类概念的单独文件。

链接地址: http://www.djcxy.com/p/21062.html

上一篇: .NET JIT潜在错误?

下一篇: LINQ to SQL Designer错误