New answers tagged

1 vote
Accepted

What is considered best practice for managing dependency injection for multiple libraries with ASP.NET Core Web API?

But that would mean that the first project would have to have a reference to the third project and would have to provide a connection string. Is the API project supposed to be aware of the database ...
Flater's user avatar
  • 47.7k
3 votes

What is considered best practice for managing dependency injection for multiple libraries with ASP.NET Core Web API?

I think we have to let Microsoft be the authority on "Best practice" here, so yeah, write an extension method, assume the user knows the namespace for it, read the config by magically ...
Ewan's user avatar
  • 72.4k

Top 50 recent answers are included