Do you need any help with Migration?

Not Now Yes, Contact Support

You are currently browsing legacy 4.0 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Migration: DatabaseCommands has been removed

IDatabaseCommands and IAsyncDatabaseCommands has been replaced in RavenDB.Client 4.0 by operations. Please read the dedicated documentation section about operations available in the client API.

Checking if document exists

3.x 4.0
var exists = store.DatabaseCommands.Head(id) != null;
var exists = session.Advanced.Exists(id);