Constructor MappingSourceAttribute
MappingSourceAttribute(string)
Instructs the default mapper to use the specified field name or dot-separated path when mapping to the marked property or parameter.
public MappingSourceAttribute(string path)
Parameters
pathstringThe record field key to read from. May be a dot-separated path of the form
field.nestedKey, wherefieldresolves to a node, relationship, or dictionary column in the record andnestedKeyis a property within that entity. All segments are matched case-sensitively.
MappingSourceAttribute(string, EntityMappingSource)
Instructs the default mapper to use the specified record field and mapping source when mapping to the marked property or parameter.
public MappingSourceAttribute(string key, EntityMappingSource entityMappingSource)
Parameters
keystringThe record field key to read from. May be a dot-separated path of the form
field.nestedKey. All segments are matched case-sensitively.entityMappingSourceEntityMappingSourceThe aspect of the entity to read. Use NodeLabel to read a node's labels, or RelationshipType to read a relationship's type string.