Commands : How to switch commands credentials?
By default, commands available directly in store are working with credentials that were set up for that store. To use different credentials for commands use With method.
IDatabaseCommands With(ICredentials credentialsForSession);
||credentials that should be used by new commands
||New instance of commands that will use given credentials.
IDatabaseCommands commands = store
.With(new NetworkCredential("otherUserName", "otherPassword"));