예제 #1
0
        public virtual void CreateKeyIndex(string key, Type elementClass, params Parameter[] indexParameters)
        {
            KeyIndexableGraphContract.ValidateCreateKeyIndex(key, elementClass, indexParameters);

            if (typeof(IVertex).IsAssignableFrom(elementClass))
            {
                VertexKeyIndex.CreateKeyIndex(key);
            }
            else
            {
                EdgeKeyIndex.CreateKeyIndex(key);
            }
        }
예제 #2
0
        public void CreateKeyIndex(string key, Type elementClass, params Parameter[] indexParameters)
        {
            KeyIndexableGraphContract.ValidateCreateKeyIndex(key, elementClass, indexParameters);

            _baseGraph.CreateKeyIndex(key, elementClass, indexParameters);
        }