Ejemplo n.º 1
0
        public void RemoveIndex(string indexKey, object[] propertyValues, string indexValue)
        {
            EntityIndexList indexList = new EntityIndexList();

            if (_entityIndexDict != null && _entityIndexDict.ContainsKey(indexKey) && _entityIndexDict[indexKey] != null)
            {
                indexList = _entityIndexDict[indexKey];
            }
            indexList.Remove(propertyValues, indexValue);

            if (_entityIndexDict != null && _entityIndexDict.ContainsKey(indexKey))
            {
                _entityIndexDict[indexKey] = indexList;
            }
            else if (_entityIndexDict != null)
            {
                _entityIndexDict.Add(indexKey, indexList);
            }
        }
Ejemplo n.º 2
0
        public void RemoveIndex(string indexKey, object[] propertyValues, string indexValue)
        {
            EntityIndexList indexList = new EntityIndexList();
            if (_entityIndexDict != null && _entityIndexDict.ContainsKey(indexKey) && _entityIndexDict[indexKey] != null)
            {
                indexList = _entityIndexDict[indexKey];
            }
            indexList.Remove(propertyValues, indexValue);

            if (_entityIndexDict != null && _entityIndexDict.ContainsKey(indexKey))
            {
                _entityIndexDict[indexKey] = indexList;
            }
            else if (_entityIndexDict != null)
            {
                _entityIndexDict.Add(indexKey, indexList);
            }
        }