public int IndexOf(Schema.Order key) { for (int index = 0; index < Count; index++) { if (key.Equivalent(this[index].Key)) { return(index); } } return(-1); }
protected override void InternalOpen() { if (_key.Equivalent(_nativeTable.ClusteredIndex.Key)) { _scan = new Scan(Manager, _nativeTable, _nativeTable.ClusteredIndex, _direction, _firstKey, _lastKey); } else { _scan = new Scan(Manager, _nativeTable, _nativeTable.NonClusteredIndexes[_key], _direction, _firstKey, _lastKey); } _scan.Open(); }