68

We have a design with 150+ tables and in the .dbml layout has lines everywhere and it's hard to find individual tables.

Is there a way to search in the dbml layout instead of scrolling around trying to locate a table (Ctrl+F don't work), Running Visual Studio 2010 Ultimate?

1 Answer 1

134

One thing you can do is go to the Properties window (while you have your DBML file open), and select the class generated for the table you're interested in from the dropdown list at the top of the Properties window.

enter image description here

Doing so should focus the DBML file visual designer on that table corresponding to that class. Doesn't work always, but it's quite helpful when it does work!

7
  • 11
    Not perfect, but it's a heck of a lot better than the scroll'n'pray alternative...
    – user166390
    Mar 18, 2012 at 19:40
  • 5
    Beautiful! I could kiss you for that! Jan 15, 2013 at 13:01
  • 10
    Why didn't I know this before now.. For 2 years I have been manually looking through the file.
    – Fogh
    Feb 11, 2013 at 21:12
  • 1
    Very handy, but darned annoying that MS hasn't figured out a better way to expose this.
    – Ken Smith
    May 19, 2014 at 16:35
  • 2
    You made my day. Thank You :) Jun 28, 2015 at 4:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.