Skip to content

Support MultipleActiveResultSets=false? #3

Open
@LeiYangGH

Description

@LeiYangGH

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions