Refreshing LinQ2SQL Model in Designer without losing all Properties

坚强是说给别人听的谎言 提交于 2019-12-11 07:46:38

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/201443/refreshing-linq2sql-model-in-designer-without-losing-all-properties

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