示例#1
0
        /// <summary>
        /// Generates the relationship string for the relationship object.
        /// </summary>
        /// <returns>The Cypher string representing the relationship object</returns>
        public string GetCypherRelationshipString()
        {
            SourceId = SourceId.Split(':')[1];
            TargetId = TargetId.Split(':')[1];

            string rolesPropertyString = "{roles:" + CypherQueryUtils.GetCypherStringArray(Roles) + "}";

            return($"({SourceId})-[:{CypherQueryUtils.GetCypherRelationshipType(Type)} {rolesPropertyString}]-({TargetId})");
        }