Good morning,
We are currently migrating away from EF to using ADO.NET for our backend. For EF, it was very easy to inject the connection string. However, I am unable to figure out how to do it with a standard service. Code currently is:
services.AddScoped<IDataCatalogRepository, SqlDataCatalogRepository>();
Currently going through the Dependency Injection test project on GitHub but not seeing exactly what I need. What I want to do is:
services.AddScoped<IDataCatalogRepository, SqlDataCatalogRepository>("connectionString")
SqlDataCatalogRepository does have connectionString as one of its constructor properties.
Using Beta 4, any ideas?
Steven M.