Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
AlexDpars 4-Dec-13 16:49pm    
I am not familiar with LinqToSQL but I guess this is a bit the same as Entity Framework. if so, look into your app.config file there should be a connection string. If there is a connection string you should be able to change the database there. Don't forget to put your connection string in the application config file.

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900