How can I setup connectionstring to a webroot dir
.NET (Core and Framework)
1
Posts
1
Posters
1
Views
1
Watching
-
Dir all. I am a new here. I just start a Web NETcore 5.0 MVC and the connectionstring has been set in the
appsettings.json
like this:
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=ManagementSystem;Trusted_Connection=True;MultipleActiveResultSets=true"
}I know that the database will be create in the "
C:\Users\Nguyen Tuan Anh
" You can see the projet is here: GitHub - nguyentuananh921/HomeJob[^] I want to setup the database so it is created in Project Folder as a relative not fix so that when I upload to github and then I can come to other pc and clone it without losing data. Thanks.