New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple queries were made to the database to authorize the user #986
Comments
Hello I know it is irellevent. How did you generate this kind of call stack? |
Do you mean the picture? With the |
I think this relate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Multiple queries were made to the database to authorize the user.
To Reproduce
Steps to reproduce the behavior:
[Authorize(Roles = "Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4,Administrator2,Administrator3,Administrator4")]
Administrator
.I replace sql database with mysql database.
I add miniProfiler to the project and check the generated queries.
For each role, it creates a database query.
Expected behavior
Make a maximum of 2 connections.
Screenshots
The text was updated successfully, but these errors were encountered: