示例#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);
        }