Exemple #1
0
 public int IndexOf(Schema.Order key)
 {
     for (int index = 0; index < Count; index++)
     {
         if (key.Equivalent(this[index].Key))
         {
             return(index);
         }
     }
     return(-1);
 }
Exemple #2
0
 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();
 }