Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant capable records #780

Merged

Conversation

RichardIrons-neo4j
Copy link
Contributor

@RichardIrons-neo4j RichardIrons-neo4j commented Feb 13, 2024

This changes the Record type so that it does not contain a dictionary on every instance, instead only containing the array of values, and references to two dictionaries shared across the whole cursor: one just a straight Dictionary<string, object>, and the other of the same type but using an InvariantCultureCaseInsensitive string comparer, so that values can be looked up using a case insensitive key, used in the object mapping.

Added Get and TryGet methods to IRecord and IEntity, and added xxxCaseInsensitive versions of those methods to IRecord.

More tests added, tests modified to create records through TestRecord.Create.

@RichardIrons-neo4j RichardIrons-neo4j marked this pull request as ready for review February 14, 2024 13:38
@RichardIrons-neo4j RichardIrons-neo4j merged commit bc664bb into neo4j:5.0 Feb 21, 2024
5 checks passed
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.

None yet

2 participants