Connecting to the database 

Follow these steps to add the GiveN'Take database to Visual Studio so that we can work on it there:

  1.  Open the SQL Server Object Explorer view in Visual Studio (ViewSQL Server Object Explorer): 

  1. Right-click on the SQL Server node inside the opened view and select Add SQL Server.
  1. In the Connect screen that has opened, select the database you wish to connect to, in our case, MSSQLLocalDB. Make sure that Authentication is set to Windows Authentication and click on Connect:

You should now see the GiveNTake database ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.