コード例 #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
ファイル: IdGraph.cs プロジェクト: marinusmaurice/VelocityDB
        public void CreateKeyIndex(string key, Type elementClass, params Parameter[] indexParameters)
        {
            KeyIndexableGraphContract.ValidateCreateKeyIndex(key, elementClass, indexParameters);

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