You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to store an object with a Guid or Enum I get a driver respons that it does not support the types.
From looking around, it seems like in order to use these normal .net types, every user of official neo4j driver has to implement their own cast of these types in order to use them.
Wouldn't it be better if the driver provided this out of the box, so every single user doesn't have to implement their own variation?
If neo4j in the far future perhaps decides to implement these types, if you made the conversion manually or not makes no difference, either you would continue using the conversion to string, or you would have to migrate your data over. It would make no difference if the conversion was built into the driver or not.
At the very least documentation on how to do this would be appreciated.
The text was updated successfully, but these errors were encountered:
It seems like i am doing something wrong. MappingFailedException
publicclassGuidMappingProvider:IMappingProvider{publicvoidCreateMappers(IMappingRegistryregistry){registry.RegisterMapping<Skill>(
builder =>{builder.UseDefaultMapping()// this does not work:.Map(m =>m.nodeId, record =>Guid.Parse(record.Values["nodeId"].As<string>()))// this also does not work.Map( m =>m.nodeId,"nodeId",EntityMappingSource.Property, o =>Guid.Parse(o.As<string>()),true);});}}
When trying to store an object with a Guid or Enum I get a driver respons that it does not support the types.
From looking around, it seems like in order to use these normal .net types, every user of official neo4j driver has to implement their own cast of these types in order to use them.
Wouldn't it be better if the driver provided this out of the box, so every single user doesn't have to implement their own variation?
If neo4j in the far future perhaps decides to implement these types, if you made the conversion manually or not makes no difference, either you would continue using the conversion to string, or you would have to migrate your data over. It would make no difference if the conversion was built into the driver or not.
At the very least documentation on how to do this would be appreciated.
The text was updated successfully, but these errors were encountered: