Why use Asp.net core DI Container in conjunction with Onconfiguring the Entity Framework?

Asked

Viewed 34 times

0

In many projects I realize that people tend to pass the Connection string both by dependency injection and optionsBuilder in the overlay of the Onconfiguring method.... What’s the point of using both at the same time?

  • 1

    Qual o sentido de usar ambos ao mesmo tempo? needless, needless, or one or the other. Preferable DI leaving settings in the appsettings.json to make your installation on the server flexible and easy to handle on your DI.

  • That’s the way I think

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.