The code for this chapter can be found in the Chapter09 folder of the book repository on GitHub. There are two subfolders there, ravendb and ef-core, containing the final code that implements the aggregate persistence and queries using the RavenDB document database, Entity Framework Core, and PostgreSQL. As a starting point, we'll be using the final code from Chapter 8, Aggregate Persistence.
You will need to use docker-compose to run the infrastructure. Check the requirements for the previous chapter if you have not completed the installation previously.