Exemplo n.º 1
0
 public int GetIndexRecordCount(EntityReferencesIndexKey key)
 {
     if (!Find(key))
     {
         return(0);
     }
     return(GetIndexRecordCount());
 }
Exemplo n.º 2
0
 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));
     }
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 public bool Find(EntityReferencesIndexKey key)
 {
     SetKey(key);
     return(Api.TrySeek(_table.Session, _table, SeekGrbit.SeekEQ | SeekGrbit.SetIndexRange));
 }