vb.net linq to sql在数据库之间进行选择 [英] vb.net linq to sql choose between Databases

查看:104
本文介绍了vb.net linq to sql在数据库之间进行选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我没有丰富的linq编程经验,所以我有一个问题。



我的解决方案在Visual Studio 2010中使用vb.net编程。对于连接数据库,我使用linq to SQL。

因此我添加了一个Linq to SQL Class,然后我将SQL数据库中的表和过程添加到Visual Studio的DBML设计图面上。



现在我的问题/问题:

如果我必须修改数据库。由于新的发展,在生产数据库中无法做到这一点。所以我创建了一个测试数据库来执行此操作。

是否有可能更改开发环境的DBML设计界面?



请帮帮我。我不知道应该怎么做。



感谢您的回答,想法或问题!!


$ b $bBjörn

解决方案

感谢您的理想,但这不起作用。

问题在于dbml文件没有更新。

所以我认为我必须寻找一个从数据库刷新/更新dbml文件的方法,就像在这个Artikel中解释一样:

SqlMetalPlus-用于管理DBML自定义更改的VS加载项 [ ^ ]

Hello,

I don`t have great experience in programming with linq, so I have a question to you.

My solution is programmed with vb.net in Visual Studio 2010. For connecting Database I use linq to SQL.
Therefore I have added a "Linq to SQL Class" and then I have added the tables and procedures from my SQL Databases onto the DBML design surface in Visual Studio.

Now my question/problem:
If I have to modify the Database. Because of new developments it is not possible to do this in the productive Database. So I have created a test database to do this.
Is there any possibility to change the DBML design surface for the development environment??

Please help me. I don`t know how I should do the changes.

Thank you for your answers, ideas or questions !!

Björn

解决方案

Thank you for your idear, but this doesn`t work.
The Problem is that the dbml File is not updating.
So i think that i have to look for a sulution to refresh/renew the dbml file from Database like explaining in this Artikel:
SqlMetalPlus- A VS Add-in to Manage Custom Changes to DBML[^]


这篇关于vb.net linq to sql在数据库之间进行选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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