I'm a project that doesn't need DbContext class, and I'm using BlobStorage DB on appsettings.json
This is my appsettings.json
{
"ConnectionStrings": {
"StorageConnectionString": "Connection"
}
and I configure on Startup.cs class, without options, because I don't need DbContext right now
_configuration.GetConnectionString("StorageConnectionString");
But I need to call my connection string on my BlobStorageService class without pass connection string name (because is already on appsettings.json).
The question is: How I can call connectionString on Service class without pass the connection string name?