Raven.DBUtil.Extensions.DatabaseExists C# (CSharp) Method

DatabaseExists() public static method

public static DatabaseExists ( this documentStore, string databaseName ) : bool
documentStore this
databaseName string
return bool
		public static bool DatabaseExists(this IDocumentStore documentStore, string databaseName)
		{
			var key = "Raven/Databases/" + databaseName;
			return documentStore.DatabaseCommands.ForSystemDatabase().DocumentExists(key);
		}