neo4j / neo4j-dotnet-driver

Neo4j Bolt driver for .NET
Apache License 2.0
222 stars 69 forks source link

move mapping api out of preview namespace #784

Closed RichardIrons-neo4j closed 2 months ago

RichardIrons-neo4j commented 4 months ago

Move all the mapping classes out of the preview namespace and into Neo4j.Driver.Mapping.

darcome commented 2 months ago

Hello, where can I find docs about mapping? Thanks in advance!

RichardIrons-neo4j commented 2 months ago

@darcome Here is a link to the API documentation for mapping, which is correct and up to date. We do not have full documentation for the mapping functionality yet, however you can look through some of the pull requests which contain some information. Note that this documentation is now out of date in some regards.

First addition of mapping: https://github.com/neo4j/neo4j-dotnet-driver/pull/729

Addition of constructor mapping: https://github.com/neo4j/neo4j-dotnet-driver/pull/751

And then these changes made for 5.20 are that the mapping is now case sensitive in matching C# symbols to database fields and properties, and that mapping will fail if a property is not found in the record. I hope this information gets you started; feel free to start a discussion if you need help with it.

darcome commented 2 months ago

Thank you!