public static string GetDatabaseName(this IAdvancedDocumentSessionOperations session) { return ((DocumentSession)session).DatabaseName; }