Proper way to access usersinfo using mongodb driver for .net/c# -
When I write this line of code (using the C # mangodb driver):
var mongoDB = ... var results = Mongo DBFundUser ("Context");
I get a warning that I should use the "user management command" userinfo "but I can not find an example of doing this.
Use the exclusion orders for now, but I want to know the correct way to do this.
You use MongoDatabase's RunCommand method and document user documentation commands here.
Comments
Post a Comment