如何在 EDMX 模型中快速找到特定的表?

我想知道是否有人知道在 EDMX 模型中找到一个表的更快的方法,而不仅仅是滚动图表并寻找这个东西。我们的数据库中有大约50个表,当我在寻找一个特定的表时,查看 VS 把它放在哪里是一件很麻烦的事情。

我使用 VS2010来回答这个问题。

先谢谢你。

25672 次浏览

If you go to the Properties window in Visual Studio 2010, you'll see an alphabetically sorted list of entity types (e.g. your tables) in your EDMX - pick the one you're interested in, and the visual designer should realign itself to actually show that table in view:

enter image description here

Click in an open area of the designer:

enter image description here

Go to the Properties tab:

enter image description here

In the dropdown box at the top, select your table. You should then see it highlighted in the designer.

enter image description here

In main menu select View > Other Windows > Entity Data Model Browser (it usually opens in the same panel as Solution explorer).

You can navigate the tree list or type the table in text box.

Entity data model browser

In the "model browser" you can right click the Table and choose "Show in diagram" in the context menu

  1. Right click on ampty place of Designer view
  2. Select "Model browser" enter image description here

3)Select talbe form menu -> it will be selected in designer:

enter image description here