Exemple #1
0
        public void Attach()
        {
            if (DetachState != DetachStateEnum.Detached)
            {
                throw new Exception("Edge not in Detached state");
            }

            // to

            IStore store = From.Store.StoreUniverse.GetStore(ToStoreTypeName, ToStoreIdentifier);

            if (store == null)
            {
                throw new Exception(ToStoreIdentifier + " store not found");
            }

            _to = store.GetVertexByIdentifier(ToIdentifier);

            To.AddInEdge(this);

            // meta

            store = From.Store.StoreUniverse.GetStore(MetaStoreTypeName, MetaStoreIdentifier);

            if (store == null)
            {
                throw new Exception(MetaStoreIdentifier + " store not found");
            }

            _meta = store.GetVertexByIdentifier(MetaIdentifier);


            _detachState = DetachStateEnum.Attached;
        }