Visual Studio 2013. dbml file not updating

2.4k views Asked by At

I am working on a Visual Studio project that uses ASP.NET/C# with LinqToSql.

All has been going fine, until some changes were made to one of the database tables.

After that, the Table in question was removed from the DBML database diagram, and the new version added back in using the Server Explorer.

Trouble is, VS2013 still does not see the new fields, and will not compile if I reference them. The new table structure is clearly visible in the DBML database diagram.

2

There are 2 answers

1
user2998990 On

Right click on your file in solution explorer and select Run custom tools and see if it is getting updated.

4
Mairaj Ahmad On

Rebuild your project and you should see the changes.