LINQ默认构造函数创建的问题 [英] LINQ Default constructor created issue

查看:111
本文介绍了LINQ默认构造函数创建的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我想我的DBML designer.cs类默认构造函数在我更改dbml类文件时不会自动生成。



我可以设置应用程序设置=假,但它仍然创建了默认构造函数。我怎么能避免这个?



我怎么能那样做?有可能吗?



谢谢

Piyush



SHOUTING删除 - OriginalGriff [/ edit]

Hello

I want to My DBML designer.cs class default constructor is not automatically generated when I changed my dbml class file.

I can Set Application Setting = "False" but still it created default constructor.How can I Avoid this?

how can I do that?It is possible?

Thanks
Piyush

[edit]SHOUTING removed - OriginalGriff[/edit]

推荐答案

我也有这个问题。



我找到的唯一方法是每次更改dbml设计器时将dbml设计器上的连接字符串设置为''none'。



我希望''你问的问题的答案。如果没有,请澄清问题
I too have this problem.

The only way I have found is to set the connection string on the dbml designer to ''none'' each time I change the dbml designer.

I hope that''s an answer to the question you asked. If not then please clarify the issue


这篇关于LINQ默认构造函数创建的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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