public void ConvertRecposToNativeWithNegativeCentriesTotal() { var recpos = new JET_RECPOS(); recpos.centriesLT = 1; recpos.centriesTotal = Int64.MinValue; NATIVE_RECPOS native = recpos.GetNativeRecpos(); }
public void ConvertRecposToNativeWithNegativeCentriesLt() { var recpos = new JET_RECPOS(); recpos.centriesLT = -1; recpos.centriesTotal = 10; NATIVE_RECPOS native = recpos.GetNativeRecpos(); }
public void ConvertRecposToNative() { var recpos = new JET_RECPOS(); recpos.centriesLT = 5; recpos.centriesTotal = 10; NATIVE_RECPOS native = recpos.GetNativeRecpos(); Assert.AreEqual(5U, native.centriesLT); Assert.AreEqual(10U, native.centriesTotal); }
public void ConvertRecposFromNative() { var native = new NATIVE_RECPOS(); native.centriesLT = 1; native.centriesTotal = 2; var recpos = new JET_RECPOS(); recpos.SetFromNativeRecpos(native); Assert.AreEqual(1, recpos.centriesLT); Assert.AreEqual(2, recpos.centriesTotal); }
public static extern int JetGotoPosition(IntPtr sesid, IntPtr tableid, [In] ref NATIVE_RECPOS precpos);
public static extern int JetGetRecordPosition(IntPtr sesid, IntPtr tableid, out NATIVE_RECPOS precpos, uint cbRecpos);