Refreshing LinQ2SQL Model In Designer Without Losing All Properties
so I'm using LinQ2SQL quite heavily in my current application, and although I have most stuff in partial classes, some things have to be adjusted in the VS Designer (like Accessors for fields I wrap). Then, sometimes I like to name Fields differently in the Model than they do in the DB.
So, my problem now is. When going back to changing a already known table I have only two options:
- Introduce new fields through the designer manually
- Delete the Table from the Model and newly import it from Server Explorer (losing properties)
Both ways are unsatisfactory. Is there some secret button I missed out that says "just refresh changes?" I mean, the model knows all mappings, it can't be that difficult to just get new things from the DB.
Any ways around this?
Answer
See this question.
Basically this isn't implemented in VS2008. Don't ask me why, maybe the guys at MS were so occupied that they completely forgot about this important feature.
Related Questions
- → Visual Studio "Unable to start debugging on the web server. The web server did not respond in a timely manner."
- → How to set up unit testing for Visual Studio C++
- → Refreshing LinQ2SQL Model in Designer without losing all Properties
- → Problem refreshing tables in the LINQ to SQL designer
- → Refreshing a DBML diagram?
- → Shortcut to switch between markup and code
- → What causes Visual Studio 2008 SP1 to crash when switch to Design View of a WPF application
- → Visual Studio 2008 Fatal Execution Engine Error (7A2E0F92)
- → VS2008 crashes with "Fatal Execution Engine Error"
- → fatal error LNK1104 cannot open file C:usersuserdocumentsvisual.obj
- → What causes Visual Studio to fail to load an assembly incorrectly?
- → Why are doubles added incorrectly in a specific Visual Studio 2008 project?
- → How do I avoid that ASP.Net (or IIS?) decodes my URL-encoded ciphertext (resulting in a 404) instead of passing it to the Approve script?