默认情况下,在Visual Studio设置UpdateCheck.Never模式2010 DBML设计师(MS SQL / ASP.NET MVC) [英] Setting the UpdateCheck.Never mode by default in Visual Studio 2010 DBML designer (MS SQL/ASP.NET MVC)

查看:338
本文介绍了默认情况下,在Visual Studio设置UpdateCheck.Never模式2010 DBML设计师(MS SQL / ASP.NET MVC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的web应用程序我做了很多的更新。因此,唯一可接受的UpdateCheck的模式,所有列,除了主键一个是从不。

In my web application I do a lot of updates. And therefore the only acceptable UpdateCheck mode for all columns except for the primary key one is "NEVER".

但不幸的是DBML设计师自动设置始终模式。所以,我必须要经过几十个栏目的手动更改它,当我有更新DBML文件......这又回到了ALWAYS了。

But unfortunately the DBML designer automatically sets the "ALWAYS" mode. So I have to go through dozens of columns to change it manually, and when I have to update the DBML file... It goes back to "ALWAYS" again.

那么,有没有自动设置您想要的模式的一种方式?

So is there a way to automatically set the mode you want?

推荐答案

我找到了解决办法!

您可以用Shift键设计师选择多个列。然后做一个鼠标点击。

You can select several columns in the designer with the Shift key. And then do one mouse click.

我爱Visual Studio的:)

I love Visual Studio :)

这篇关于默认情况下,在Visual Studio设置UpdateCheck.Never模式2010 DBML设计师(MS SQL / ASP.NET MVC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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