简体   繁体   中英

Visual Studio 2013 Dataset Designer Does Not Match Code

I am having a problem with the Dataset Designer in VS2013. I don't know how it happened but when I go to view a Dataset in the designer, a ton of my queries and stored procedures are missing. It's almost like the designer rolled back to defaults or something. I check the Designer.cs file and everything is there but now I can't use the designer at all. I'm afraid that one of these times when closing the designer I'll accidentally click and hit a key when the prompt comes up asking if I want to save changes, and poof all my hard work is over written and destroyed(I have backups but still...). Here is a question that seemed similar to my issue: VS2008 DataSet Wizard doesn't match tables for updating

The problem for this poster was a table got renamed or something. I haven't renamed any of the tables as far as I know. Has anyone run into this before? How do I refresh the designer so it reflects the current content in my code(Designer.cs file) like queries and stored procedures? Any help is greatly appreciated. Thanks!

I found the solution to this but have been so slammed at work I haven't posted till right now. Here is a link to a blog post describing how to clear the visual studio cache. PLEASE BE CAUTIOUS and read carefully. This worked for me and hopefully you too!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM