neo4j / neo4j-dotnet-driver

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

Make property mapping fail when record is missing field, unless the property is marked with an attribute #796

Closed RichardIrons-neo4j closed 2 months ago

RichardIrons-neo4j commented 2 months ago

This changes the behaviour of property mapping so that if a property is in the class but it cannot be populated, an exception is thrown, instead of it silently doing nothing. Two new attributes have been added:

Tests were added for the new features, as well as the specific issues raised that led to this change.