How do I find a specific table in my EDMX model quickly?
-
05-07-2021 - |
Question
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.
Solution
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.
OTHER TIPS
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.
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:
In the "model browser" you can right click the Table and choose "Show in diagram" in the context menu