Table of Contents

Constructor MappingSourceAttribute

Namespace
Neo4j.Driver.Mapping
Assembly
Neo4j.Driver.dll

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

path string

The record field key to read from. May be a dot-separated path of the form field.nestedKey, where field resolves to a node, relationship, or dictionary column in the record and nestedKey is 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

key string

The record field key to read from. May be a dot-separated path of the form field.nestedKey. All segments are matched case-sensitively.

entityMappingSource EntityMappingSource

The aspect of the entity to read. Use NodeLabel to read a node's labels, or RelationshipType to read a relationship's type string.