public void SetStudioConfigToAllowSingleDb()
{
if (DocumentDatabase == null)
return;
var jsonDocument = DocumentDatabase.Get("Raven/StudioConfig", null);
RavenJObject doc;
RavenJObject metadata;
if(jsonDocument == null)
{
doc = new RavenJObject();
metadata = new RavenJObject();
}
else
{
doc = jsonDocument.DataAsJson;
metadata = jsonDocument.Metadata;
}
doc["WarnWhenUsingSystemDatabase"] = false;
DocumentDatabase.Put("Raven/StudioConfig", null, doc, metadata, null);
}