Visual Studio 2013. dbml file not updating

元气小坏坏 提交于 2020-01-07 04:28:29

问题


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.


回答1:


Rebuild your project and you should see the changes.




回答2:


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



来源:https://stackoverflow.com/questions/27503626/visual-studio-2013-dbml-file-not-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!