110

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.

monkeymindllc
  • 1,411
  • 2
  • 9
  • 12
  • 2
    Edit: Thank you for your quick answers. marc_s, I know yours was first, but it took me a while to figure out what you meant. Bob Horn's answer was more complete with all the steps involved clearly laid out. I appreciate the time from all three of you. – monkeymindllc Oct 04 '12 at 20:44
  • Btw, sometimes it is necessary to find something quickly in .edmx using XML Editor. Would be nice all the xml would always be sorted inside .edmx file: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/4142937-sort-and-autoformat-xml-inside-edmx-files-before – Konstantin Tarkus Apr 21 '14 at 09:08

5 Answers5

190

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

Bob Horn
  • 33,387
  • 34
  • 113
  • 219
  • 2
    Doesn't work for me in VS2015 professional. Clicking on the empty area only shows a single entry in the "Property" window, which is the ConceptualEntityModel. – J. Doe Mar 21 '18 at 09:28
  • 1
    Nevermind, turns out this method doesn't work on *.edmx files. – J. Doe Mar 21 '18 at 09:41
  • If you change the Fill color on the properties once you select the table, you can see it much easier on the table view. – Jon Dosmann May 23 '19 at 15:17
59

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

pero
  • 4,169
  • 26
  • 27
13

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
13

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

Thomas Koelle
  • 3,416
  • 2
  • 23
  • 44
  • 2
    +1 For some reason my EDMX is a little broken, The diagram shows fine, but the properties drop down does not show any entities. This method works great. – Nigel Ellis Aug 25 '15 at 13:22
9
  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

alexey
  • 783
  • 1
  • 7
  • 19