Exemplo n.º 1
0
 /// <summary>
 /// Get a NATIVE_RECPOS structure representing the object.
 /// </summary>
 /// <returns>A NATIVE_RECPOS whose members match the class.</returns>
 internal NATIVE_RECPOS GetNativeRecpos()
 {
     var recpos = new NATIVE_RECPOS();
     recpos.cbStruct = checked((uint) NATIVE_RECPOS.Size);
     recpos.centriesLT = checked((uint) this.centriesLT);
     recpos.centriesTotal = checked((uint) this.centriesTotal);
     return recpos;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Get a NATIVE_RECPOS structure representing the object.
        /// </summary>
        /// <returns>A NATIVE_RECPOS whose members match the class.</returns>
        internal NATIVE_RECPOS GetNativeRecpos()
        {
            var recpos = new NATIVE_RECPOS();

            recpos.cbStruct      = checked ((uint)NATIVE_RECPOS.Size);
            recpos.centriesLT    = checked ((uint)this.centriesLT);
            recpos.centriesTotal = checked ((uint)this.centriesTotal);
            return(recpos);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Sets the fields of the object from a NATIVE_RECPOS structure.
 /// </summary>
 /// <param name="value">The NATIVE_RECPOS which will be used to set the fields.</param>
 internal void SetFromNativeRecpos(NATIVE_RECPOS value)
 {
     this.centriesLT    = checked ((int)value.centriesLT);
     this.centriesTotal = checked ((int)value.centriesTotal);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Sets the fields of the object from a NATIVE_RECPOS structure.
 /// </summary>
 /// <param name="value">The NATIVE_RECPOS which will be used to set the fields.</param>
 internal void SetFromNativeRecpos(NATIVE_RECPOS value)
 {
     this.centriesLT = checked((int) value.centriesLT);
     this.centriesTotal = checked((int) value.centriesTotal);
 }
Exemplo n.º 6
0
 public static extern int JetGetRecordPosition(IntPtr sesid, IntPtr tableid, out NATIVE_RECPOS precpos, uint cbRecpos);