This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Let's look at the options for changing the name of the generated database.
Follow Along
To follow along commiting your changes to this course, you'll need to fork the dotnet-comic-book-gallery-model repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork>
cd dotnet-comic-book-gallery-model
git checkout tags/v2.3 -b changing-the-database-name
Code
Here's the database connection string to connect to the default SQL Server LocalDB instance and set the generated database name to "ComicBookGallery".
Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ComicBookGallery;Integrated Security=True;MultipleActiveResultSets=True
Additional Learning
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Dmitri Mikhalev
4,462 Points2 Answers
-
PLUS
kevin hudson
Courses Plus Student 11,987 Points1 Answer
-
David Lin
35,864 PointsconnectionStrings for Context now needs providerName key
Posted by David LinDavid Lin
35,864 Points0 Answers
-
Jason Storm
6,288 Points4 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up