GetMemeberName() public method

public GetMemeberName ( ) : string
return string
Beispiel #1
0
        private void PersistObjectGraphWithRelationship(ParentChildGlue parentRelation)
        {
            object entityParent = parentRelation.GetParent();
            object entity       = parentRelation.GetChild();
            Node   parent       = null;

            Node child = _nodeMapper.SaveAndReturnAsNode(entity);

            if (entityParent != null)
            {
                parent = _nodeMapper.SaveAndReturnAsNode(entityParent);
                parent.CreateRelationshipTo(child, parentRelation.GetMemeberName());
            }

            this.QueueDirectChild(entity);

            if (_toWalk.Count == 0)
            {
                return;
            }
            PersistObjectGraphWithRelationship(_toWalk.Pop());
        }
        private void PersistObjectGraphWithRelationship(ParentChildGlue parentRelation)
        {
            object entityParent = parentRelation.GetParent();
            object entity = parentRelation.GetChild();
            Node parent = null;

            Node child = _nodeMapper.SaveAndReturnAsNode(entity);
            if (entityParent != null)
            {
                parent = _nodeMapper.SaveAndReturnAsNode(entityParent);
                parent.CreateRelationshipTo(child, parentRelation.GetMemeberName());
            }

            this.QueueDirectChild(entity);

            if (_toWalk.Count == 0) return;
            PersistObjectGraphWithRelationship(_toWalk.Pop());
        }