LINQ to SQL Designer错误 [英] LINQ to SQL Designer Bug

查看:48
本文介绍了LINQ to SQL Designer错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次在保存后在设计器中更改值时,.designer.cs文件都会被删除.

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.csDataContext.designer.cs文件中的using指令移至namespace范围.

Move using directives in your DataContext.cs and DataContext.designer.cs files into the namespace scope.

这篇关于LINQ to SQL Designer错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆