Home / Companies / Neo4j / Blog / Post Details
Content Deep Dive

Object Mapping in the Neo4j Driver forĀ .NET

Blog post from Neo4j

Post Details
Company
Date Published
Author
Richard Irons
Word Count
1,084
Language
English
Hacker News Points
-
Summary

The Neo4j Driver for .NET has introduced a new feature that allows C# objects to be quickly constructed from query results with minimal boilerplate. This feature uses convention-based mapping, where property names are used to decide which data from the record to use, or custom configuration can be supplied to specify exactly how to map from a record to an object type. The default mapper can also give "hints" to expand the situations covered. Additionally, there are two ways to create custom mappings: by implementing the IRecordMapper interface for class-based mapping and by implementing the IMappingProvider interface for property-by-property configuration. The feature is still in preview and would appreciate feedback from real-world users.