I am in the process of learning ASP.NET vNext. I need to store two connection strings in the config.json file. How do I store those? Can I do this:
config.json
{
"connectionStrings" : {
"connection-1" : "server=...",
"connection-2" : "server=..."
}
}
I have not been able to find a schema for config.json
. For that reason, I wasn't sure how to do it. I saw the use of IConfiguration
here. Still, I wasn't sure how Configuration
was available in the app.