Skip to content

[.NET] Updates to object mapping feature#503

Merged
stefano-ottolenghi merged 9 commits into
devfrom
dotnet-mapping-transl
May 25, 2026
Merged

[.NET] Updates to object mapping feature#503
stefano-ottolenghi merged 9 commits into
devfrom
dotnet-mapping-transl

Conversation

@stefano-ottolenghi
Copy link
Copy Markdown
Contributor

@stefano-ottolenghi stefano-ottolenghi commented Feb 1, 2026

Docs for neo4j/neo4j-dotnet-driver#901

  • New [MappingBindings]
  • revise object mapping feature
  • PascalCase/camelCase translation via RecordObjectMapping.TranslateIdentifiers()

Copy link
Copy Markdown
Contributor

@RichardIrons-neo4j RichardIrons-neo4j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this slipped through the cracks for so long. Looks good!

@stefano-ottolenghi stefano-ottolenghi changed the title Updates to object mapping feature [.NET] Updates to object mapping feature May 11, 2026
Copy link
Copy Markdown
Contributor

@RichardIrons-neo4j RichardIrons-neo4j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment about attribute order.

----
public class Person {
[MappingBindings(CypherParameterName = "first")]
[CypherParameterMapping("override_name")] // This wins!
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

During development of this I found out that multiple attributes are returned in an arbitrary order, so we can't guarantee which one wins (which sucks).

@neo4j-docops-agent
Copy link
Copy Markdown
Collaborator

neo4j-docops-agent commented May 25, 2026

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

@stefano-ottolenghi stefano-ottolenghi merged commit 4a5e866 into dev May 25, 2026
5 checks passed
@stefano-ottolenghi stefano-ottolenghi deleted the dotnet-mapping-transl branch May 25, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants