How to register own Mapper? #816
Replies: 1 comment 2 replies
-
Hi there. The method that you have tried first here is not quite how the The second method you tried should work - however it doesn't, and you have uncovered a bug there. The default mapper tried and fails to map the guid value before your custom mapping gets a chance to take over. I should be able to get to this bug in the next few weeks. In the meantime you could work around it by either defining a complete mapping from return result.Single().AsObject(
(string nodeId, string skillName, int points) =>
new Skill (Guid.Parse(nodeId), skillName, points)
); I hope this helps tide you over until the bug is fixed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We want to use Guid as our primary key.
This fails because of: MappingFailedException
Cannot map record to type Skill because the record does not contain a value for the property 'nodeId'
.What are we doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions