public int GetIndexRecordCount(SequencesIndexKey key) { if (!Find(key)) { return(0); } return(GetIndexRecordCount()); }
public IEnumerable <object> EnumerateUnique(SequencesIndexKey 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 void SetKey(SequencesIndexKey key) { if (key.EntityReferences == null) { Api.MakeKey(_table.Session, _table, null, MakeKeyGrbit.NewKey); } else { Api.MakeKey(_table.Session, _table, key.EntityReferences.Value, MakeKeyGrbit.NewKey); } Api.MakeKey(_table.Session, _table, key.SequenceNumber, MakeKeyGrbit.None); }
public bool Find(SequencesIndexKey key) { SetKey(key); return(Api.TrySeek(_table.Session, _table, SeekGrbit.SeekEQ | SeekGrbit.SetIndexRange)); }
public IEnumerable <ViewValues.MediaDataView> EnumerateUniqueAsMediaDataView(SequencesIndexKey key) { SetKey(key); if (Api.TrySeek(_table.Session, _table, SeekGrbit.SeekEQ | SeekGrbit.SetIndexRange)) { do { yield return(Views.MediaDataView.Fetch()); } while (Api.TryMove(_table.Session, _table, JET_Move.Next, MoveGrbit.MoveKeyNE)); } }