public int GetIndexRecordCount(PrimaryIndexKey key) { if (!Find(key)) { return(0); } return(GetIndexRecordCount()); }
public IEnumerable <object> EnumerateUnique(PrimaryIndexKey key) { SetKey(key); if (Api.TrySeek(_table.Session, _table, SeekGrbit.SeekEQ | SeekGrbit.SetIndexRange)) { do { yield return(_table); } while (Api.TryMove(_table.Session, _table, JET_Move.Next, MoveGrbit.MoveKeyNE)); } }
public bool Find(PrimaryIndexKey key) { SetKey(key); return(Api.TrySeek(_table.Session, _table, SeekGrbit.SeekEQ | SeekGrbit.SetIndexRange)); }
public void SetKey(PrimaryIndexKey key) { Api.MakeKey(_table.Session, _table, key.Id, MakeKeyGrbit.NewKey); }