-
Notifications
You must be signed in to change notification settings - Fork 69
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
UserManager.Users throws System.NotSupported #25
Comments
@Mech0z thanks for reporting this. this is currently by design but doesn't have to be that way. AFAIK, MongoDB .NET Driver supports queryable. So, I am not entirely sure though which LINQ operations MongoDB supports. We may need to write tests. @Mech0z do you want to help me out on getting this implemented? |
As a workaround, you can query MongoDB by yourself through your own way. |
@Mech0z ⬆️ any thoughts? |
Sorry I havent had time to look at it, But since you fixed https://github.com/tugberkugurlu/AspNetCore.Identity.MongoDB/releases/tag/1.0.0-rc3 I have just made a derived User repo that can fetch both single and all users. If I get time I can try to look at making a pull request if I can make an implementation of it into your framework |
If someone wants to tell me what test(s) may need to be written... the property takes ~30 seconds to add... so it's just adding tests to proof what we can/cannot do. |
Hi, I am trying to use the Users to get all registered users, maybe I am using the framework wrong, but my idea is
I have https://github.com/Mech0z/FoosballCore2 which is a foosball site, I then want a setup page that can be run there if there is no user with Administrator claim.
Is there a way to get all users and check how many have a certain role? Or should I just make my own repository that gets all users and make a count myself.
The text was updated successfully, but these errors were encountered: