public int GetIndexRecordCount(EntityReferencesIndexKey key) { if (!Find(key)) { return(0); } return(GetIndexRecordCount()); }
public IEnumerable <object> EnumerateUnique(EntityReferencesIndexKey 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(EntityReferencesIndexKey key) { if (key.EntityReferences == null) { Api.MakeKey(_table.Session, _table, null, MakeKeyGrbit.NewKey); } else { Api.MakeKey(_table.Session, _table, key.EntityReferences.Value, MakeKeyGrbit.NewKey); } }
public bool Find(EntityReferencesIndexKey key) { SetKey(key); return(Api.TrySeek(_table.Session, _table, SeekGrbit.SeekEQ | SeekGrbit.SetIndexRange)); }