Linq To Sql Not recognizing changes to database
NickName:N. Sch Ask DateTime:2017-03-01T04:21:35

Linq To Sql Not recognizing changes to database

Something happened to some of the files in my visual studio project so I had to transfer the working files to a new project.

Everything is working fine except when I try to add new stuff to my database (like a new column) linq to sql does not recognize the changes.

At one point (I think when I opened up the dbml file) something popped up on visual studio saying something to the effect, that the link to the database (I am not sure if it mentioned web.config) is incorrect so they are just going to use the link in the dbml file (or something like that).

How do I get the correct link? and where do I put it?

So linq to sql will recognize changes?

Copyright Notice:Content Author:「N. Sch」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42518030/linq-to-sql-not-recognizing-changes-to-database

More about “Linq To Sql Not recognizing changes to database” related questions

Linq To Sql Not recognizing changes to database

Something happened to some of the files in my visual studio project so I had to transfer the working files to a new project. Everything is working fine except when I try to add new stuff to my da...

Show Detail

LINQ to SQL - How to deal with changes to database

I'm fairly new to LINQ to SQL, so I could be missing something basic here. I created a LINQ to SQL layer, generated all the dbml files etc., and created a LINQ query which worked fine. I then mad...

Show Detail

How to use LINQ to SQL after changes in database

Note: I know there was disscussion about similar questions before, like in: link text but i have to know how to handle this scenario: Problem: I wrote program that use LINQ to SQL and it will be

Show Detail

LINQ-to-SQL not submitting changes to local database

I have a local, SQL Server Compact database in an application I am creating. I generated a .dbml file I can use for LINQ-to-SQL purposes using the SqlMetal.exe tool, which worked fine - I now have ...

Show Detail

How to handle LINQ to SQL schema changes

I am creating a WPF project using LINQ to SQL and WiX for deployment. I'm not sure how to handle database schema changes between minor or major updates to the application. For example, how to han...

Show Detail

DataContext - LINQ to SQL

I deleted a column from a my ms sql database but my web app is still recognizing it. I believe I need to regenerate my datacontext since I'm using LINQ but I can't find a way to do so in Visual Stu...

Show Detail

Logging changes using LINQ to SQL

In a system I am creating, the customer requires all changes to data to be logged to a database table - with only changes being logged (i.e. if they only change 1 value on a form full of 10 fields,...

Show Detail

Linq to SQL - Can you submit changes for a single object?

Is there support in Linq to SQL for submitting changes to a single object? The SubmitChanges method sends all of the changes to the database, but what if I'm associating with an errorlog table and...

Show Detail

Set database name dynamically in LINQ to SQL

I am using LINQ to SQL to connect to database from my application. When I am changing environment from production to staging, I can update my connection string in web.config. But there is one more ...

Show Detail

Linq-to-SQL: how to handle database changes

I have several installations of my Linq-to-Sql app running in the field. Now I've created a new version, which adds a new column to a certain table. I've added this column in the dbml file. But when

Show Detail