aws / aws-aspnet-cognito-identity-provider

ASP.NET Core Identity Provider for Amazon Cognito
https://aws.amazon.com/developer/language/net/
Apache License 2.0
215 stars 89 forks source link

How to work with ApplicationDbContext #82

Closed futurify-ydang closed 5 years ago

futurify-ydang commented 5 years ago

According to this blog we have to remove all references of ApplicationDbContext in Startup.cs to work with Cognito provider.

image

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!