I develop a simple web app and, in the future, I want to do it as multi-tenancy.
So I want to write the connection string straight into OnConfiguring me
So I want to write the connection string straight into OnConfiguring method:
How can I extract connection string from appsettings.json into ApplicationContext class?
I wouldn't like to create any constructors for ApplicationContext class.
You could use Options Pattern via IOptions but the easiest way is using DI in ApplicationContext constructor ;)
Follow below articles, please: