You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: How to get the primary database Url?

Url is a helper method that returns the primary database url.

Syntax

string Url { get; }
Return Value Description
string Gets the primary database Url

Example I

// http://localhost:8080/
string url = store.DatabaseCommands.ForSystemDatabase().Url;