public static IndexWaitQuery <TRecord> IndexWait <TRecord, TIndex>(this IBaseIndex <TRecord, TIndex> index) { // FIXME: Since this overload only takes a single index name, it'd be nice if we could return an // IScalarQuery... but we don't currently have a query op that takes a sequence and returns a // single item. return(index.Table.IndexWait(index.Name)); }
private void setSelectedIndexID(int?baseIndexID) { //if (baseIndexID != null && baseIndexID > 0) //{ IBaseIndex baseIndex = this.fastListIndex.Objects.Cast <IBaseIndex>().FirstOrDefault(w => w.Id == baseIndexID); if (baseIndex == null && (IBaseIndex)this.fastListIndex.SelectedObject != null) { fastListIndex_SelectedIndexChanged(this.fastListIndex, new EventArgs()); } else { if (baseIndex == null) { baseIndex = this.fastListIndex.Objects.Cast <IBaseIndex>().FirstOrDefault(); } if (baseIndex != null) { this.fastListIndex.SelectObject(baseIndex); this.fastListIndex.EnsureModelVisible(baseIndex); } } //} //else // if (this.ReadonlyMode && this.fastListIndex.GetItemCount() > 0) this.fastListIndex.SelectedIndex = 0; }
public static EqJoinQuery <TLeft, TRight, TResult> EqJoin <TLeft, TRight, TResult, TIndexType>( this ISequenceQuery <TLeft> leftQuery, Expression <Func <TLeft, object> > leftMemberReferenceExpression, ISequenceQuery <TRight> rightQuery, IBaseIndex <TRight, TIndexType> index) { return(leftQuery.EqJoin <TLeft, TRight, TResult>(leftMemberReferenceExpression, rightQuery, index.Name)); }
private int?getSelectedIndexID() { if (this.fastListIndex.SelectedObject != null) { IBaseIndex baseIndex = (IBaseIndex)this.fastListIndex.SelectedObject; if (baseIndex != null) { return(baseIndex.Id); } else { return(null); } } else { return(null); } }
public static BetweenQuery <TSequence, TKey> Between <TSequence, TKey>(this ISequenceQuery <TSequence> target, TKey leftKey, TKey rightKey, IBaseIndex <TSequence, TKey> index, Bound leftBound = Bound.Closed, Bound rightBound = Bound.Open) { return(target.Between(leftKey, rightKey, index.Name, leftBound, rightBound)); }
public static GetAllQuery <TSequence, TKey> GetAll <TSequence, TKey>(this IBaseIndex <TSequence, TKey> index, params TKey[] keys) { return(index.Table.GetAll(keys: keys, indexName: index.Name)); }
public static GetAllQuery <TSequence, TKey> GetAll <TSequence, TKey>(this ISequenceQuery <TSequence> target, TKey key, IBaseIndex <TSequence, TKey> index) { return(target.GetAll(key, indexName: index.Name)); }
public static IndexDropQuery <TRecord> IndexDrop <TRecord, TIndex>(this IBaseIndex <TRecord, TIndex> index) { return(index.Table.IndexDrop(index.Name)); }
public static IWriteQuery <DmlResponse> IndexDrop <TRecord, TIndex>(this IBaseIndex <TRecord, TIndex> index) { return(index.Table.IndexDrop(index.Name)); }