According to this blog we have to remove all references of ApplicationDbContext
in Startup.cs to work with Cognito provider.
But i need ApplicationDbContext to instance to query data in my local database.
I have a question that how we can inject ApplicationDbContext to ServiceCollection?
Please give an example.
Thanks!
According to this blog we have to remove all references of ApplicationDbContext in Startup.cs to work with Cognito provider.
But i need ApplicationDbContext to instance to query data in my local database. I have a question that how we can inject ApplicationDbContext to ServiceCollection? Please give an example. Thanks!