C# 如何快速找到 EDMX 模型中的特定表?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12735230/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I find a specific table in my EDMX model quickly?
提问by monkeymindllc
I was wondering if anyone knows a quicker way to find a table in the EDMX model than just scrolling through the diagram and looking for the thing. Our database has around 50 tables in it and when I'm looking for a specific one it's just a chore to see where VS put the thing.
我想知道是否有人知道在 EDMX 模型中找到表格的更快方法,而不仅仅是滚动图表并查找内容。我们的数据库中有大约 50 个表,当我在寻找一个特定的表时,查看 VS 把这些东西放在哪里只是一件苦差事。
I'm using VS 2010 for the purpose of this question.
我正在使用 VS 2010 来解决这个问题。
Thank you in advance.
先感谢您。
采纳答案by Bob Horn
Click in an open area of the designer:
单击设计器的开放区域:


Go to the Properties tab:
转到“属性”选项卡:


In the dropdown box at the top, select your table. You should then see it highlighted in the designer.
在顶部的下拉框中,选择您的表格。然后您应该会看到它在设计器中突出显示。


回答by marc_s
If you go to the Propertieswindow 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:
如果您转到PropertiesVisual Studio 2010 中的窗口,您将在 EDMX 中看到按字母顺序排序的实体类型列表(例如您的表) - 选择您感兴趣的一个,视觉设计器应该重新调整自己以实际显示该表在视图中:


回答by pero
In main menu select View > Other Windows > Entity Data Model Browser (it usually opens in the same panel as Solution explorer).
在主菜单中选择 View > Other Windows > Entity Data Model Browser(它通常在与解决方案资源管理器相同的面板中打开)。
You can navigate the tree list or type the table in text box.
您可以浏览树列表或在文本框中键入表格。


回答by Thomas Koelle
In the "model browser" you can right click the Table and choose "Show in diagram" in the context menu
在“模型浏览器”中,您可以右键单击表格并在上下文菜单中选择“在图表中显示”

