It seems that many .net tutorials storing connection strings are very simple projects not using a separate data access layer, or are fairly old.
What is the current best practice for storing a connection string in a c# project (I'm using a web API) that has a class library for data access separate from the main project? Should the connection strings be located in an appsettings.json within the class library, or are they required to reside in the main project, to be passed into the data access library?
Thanks!