For developing a Neo4j Data Access for .NET Core, it is recommended to set up a free Neo4j Aura instance or use Neo4j Desktop on your local machine. The Neo4j Official Driver NuGet Package should be installed in the data access project. The app settings file should contain the Neo4j Bolt/Neo4j connection string, username, password, and database instance name, with additional security measures implemented to protect the password.
The Neo4j Data Access class is injected as a scoped dependency, and the IAsyncDisposable interface provides a mechanism for releasing unmanaged resources asynchronously. The wrapper methods manage the Neo4j session using IAsyncDisposable, allowing for easy implementation and reusability.
Domain repository methods can be used to prepare Cypher queries and parameters, utilizing map projections to construct data from nodes, relationships, and other values. This approach helps avoid extra boxing and unboxing, making it easier for clients to parse the JSON to their desired object types.