Problem refreshing tables in the LINQ to SQL designer

后端 未结 9 1380
野趣味
野趣味 2021-02-08 12:54

I have been using LINQ to SQL for a while, and there is one thing that has always bothered me. Whenever I modify the schema of a table, in order to refresh it in the designer, I

9条回答
  •  清酒与你
    2021-02-08 13:30

    There are a couple of other options:

    1. Edit the .dbml file that the designer uses to draw the tables and generate the code. I've used this approach when the changes are small (adding a couple of columns, creating a simple table)
    2. Use sqlmetal to create the required xml for the changed tables and move the declarations by hand to the .dbml file. This one is better for when the changes are either more complex or larger.

提交回复
热议问题