Source/NFX/DataAccess/CRUD/RowsetBase.cs
/// <summary>
/// Tries to find a row index by specified keyset and extra WHERE clause and returns it or null if not found.
/// This method does not perform well on Rowsets instances as a rowset is unordered list which does linear search.
/// In contrast, Tables are always ordered and perform binary search instead
/// </summary>
Tries to find a row index by specified keyset and extra WHERE clause and returns it or null if not found.
This method does not perform well on Rowsets instances as a rowset is unordered list which does linear search.
In contrast, Tables are always ordered and perform binary search instead
Tries to find a row index by specified keyset and extra WHERE clause and returns it or null if not found . This method does not perform well on Rowsets instances as a rowset is unordered list which does linear search . In contrast Tables are always ordered and perform binary search instead
public int FindIndexByKey(Row row, Func<Row, bool> extraWhere)
            {
               Check(row);
               int insertIndex;
               int idx = SearchForRow(row, out insertIndex);
               if (idx<0)
                  return idx;
               return extraWhere != null && !extraWhere(m_List[idx]) ? -1 : idx;
            }
public int FindIndexByKey ( Row row , Func < Row , bool > extraWhere ) { Check ( row ) ; int insertIndex ; int idx = SearchForRow ( row , out insertIndex ) ; if ( idx < 0 ) return idx ; return extraWhere != null && ! extraWhere ( m_List [ idx ] ) ? - 1 : idx ; }
Tries to find a row index by specified keyset and extra WHERE clause and returns it or null if not found.
Tries to find a row index by specified keyset and extra WHERE clause and returns it or null if not found .
row
Row
extraWhere
Func<Row, bool>