You are currently browsing legacy 4.1 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

Session: How to Customize ID Generation for Entities

In RavenDB, you will encounter a few ways to create document IDs. We suggest that you should first read the article 'Working with Document Identifiers' to achieve the basic knowledge about built-in ID generation strategies before you start customizing identifiers of your entities.

In order to dive into ID generation customizations, you need to get familiar with conventions related to the identifiers. There are two dedicated articles that present conventions which you can apply to all entity types or work more selectively and create a ID generation customization for a particular type. Here are the relevant links: