How do I find a specific table in my EDMX model quickly?
C#vb.netEntity Framework-4EdmxEdmx DesignerC# Problem Overview
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.
I'm using VS 2010 for the purpose of this question.
Thank you in advance.
C# Solutions
Solution 1 - C#
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.
Solution 2 - C#
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.
Solution 3 - C#
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:
Solution 4 - C#
In the "model browser" you can right click the Table and choose "Show in diagram" in the context menu