public void Setup() { this.native = new NATIVE_RECORDLIST { tableid = (IntPtr)0x1000, cRecords = 100, columnidBookmark = 1, }; this.converted = new JET_RECORDLIST(); this.converted.SetFromNativeRecordlist(this.native); }
/// <summary> /// Computes the intersection between multiple sets of index entries from different secondary /// indices over the same table. This operation is useful for finding the set of records in a /// table that match two or more criteria that can be expressed using index ranges. Also see /// <seealso cref="IntersectIndexes"/>. /// </summary> /// <param name="sesid">The session to use.</param> /// <param name="ranges"> /// An the index ranges to intersect. The tableids in the ranges /// must have index ranges set on them. Use <see cref="JetSetIndexRange"/> /// to create an index range. /// </param> /// <param name="numRanges"> /// The number of index ranges. /// </param> /// <param name="recordlist"> /// Returns information about the temporary table containing the intersection results. /// </param> /// <param name="grbit">Intersection options.</param> public static void JetIntersectIndexes( JET_SESID sesid, JET_INDEXRANGE[] ranges, int numRanges, out JET_RECORDLIST recordlist, IntersectIndexesGrbit grbit) { Api.Check(Impl.JetIntersectIndexes(sesid, ranges, numRanges, out recordlist, grbit)); }
public void JetRecordlistToString() { var value = new JET_RECORDLIST { cRecords = 3, tableid = new JET_TABLEID { Value = (IntPtr)0x1a } }; Assert.AreEqual("JET_RECORDLIST(0x1a,3 records)", value.ToString()); }