Skip to content
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

Support MultipleActiveResultSets=false? #3

Open
LeiYangGH opened this issue Jun 9, 2021 · 0 comments · May be fixed by #4
Open

Support MultipleActiveResultSets=false? #3

LeiYangGH opened this issue Jun 9, 2021 · 0 comments · May be fixed by #4

Comments

@LeiYangGH
Copy link

LeiYangGH commented Jun 9, 2021

This demo is great and I want to integrate the role manage functions in my project.

In connection string, MultipleActiveResultSets=true is a feature of sqlserver, if set to false, openning RolesManage page will get exception such as

InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.

image

And if i use MySql, there's no way to set MultipleActiveResultSets=true(not supported at all, web app cannot start).

So I think somewhere in UserRolesController.cs could be improved to avoid this exception.
But I'm not yet able to fix myself. Could you have a look?

@LeiYangGH LeiYangGH linked a pull request Jun 9, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant