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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -