title: How to generate EDM diagram from localdb generated by Code First
body: <p>I used code first to generate a database with four tables in it.  How can I view those tables in an Entity Data Model diagram? Here is the database that got created by Code First.</p>
  
  <p><a href="https://i.stack.imgur.com/Mf9ej.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mf9ej.png" alt="SQL ServerObjectExplorer"></a></p>
  
  <p>I tried clicking my project Add New Item... "ADO.NET Entity Data Model", "EF Designer from Database" and then it is asking me for a "Server Name" below.  What do I type here? </p>
  
  <p><a href="https://i.stack.imgur.com/4GWCF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4GWCF.jpg" alt="Connection Properties"></a></p>
  
  <p>I tried servername "(localdb)" and "localhost" and my machine name. None work. It just hangs a while and then says "The server was not found or was not accessible."</p>