/// <summary>
 /// Sets the fields of the object from a native JET_OBJECTINFO struct.
 /// </summary>
 /// <param name="value">
 /// The native objectlist to set the values from.
 /// </param>
 internal void SetFromNativeObjectinfo(NATIVE_OBJECTINFO value)
 {
     unchecked
     {
         this.objtyp  = (JET_objtyp)value.objtyp;
         this.grbit   = (ObjectInfoGrbit)value.grbit;
         this.flags   = (ObjectInfoFlags)value.flags;
         this.cRecord = (int)value.cRecord;
         this.cPage   = (int)value.cPage;
     }
 }
        public void Setup()
        {
            this.native = new NATIVE_OBJECTINFO()
            {
                cbStruct = (uint)Marshal.SizeOf(typeof(NATIVE_OBJECTINFO)),
                cPage = 2,
                cRecord = 3,
                flags = 0x20000000,     // Template
                grbit = 7,              // Updatable | Bookmark | Rollback
                objtyp = 1,             // Table
            };

            this.managed = new JET_OBJECTINFO();
            this.managed.SetFromNativeObjectinfo(ref this.native);
        }
Exemple #3
0
 /// <summary>
 /// Sets the fields of the object from a native JET_OBJECTINFO struct.
 /// </summary>
 /// <param name="value">
 /// The native objectlist to set the values from.
 /// </param>
 internal void SetFromNativeObjectinfo(ref NATIVE_OBJECTINFO value)
 {
     unchecked
     {
         this.objtyp = (JET_objtyp)value.objtyp;
         this.grbit = (ObjectInfoGrbit)value.grbit;
         this.flags = (ObjectInfoFlags)value.flags;
         this.cRecord = (int)value.cRecord;
         this.cPage = (int)value.cPage;
     }
 }
 /// <summary>
 /// Sets the fields of the object from a native JET_OBJECTINFO struct.
 /// </summary>
 /// <param name="value">
 /// The native objectlist to set the values from.
 /// </param>
 internal void SetFromNativeObjectinfo(NATIVE_OBJECTINFO value)
 {
 }
 /// <summary>
 /// Sets the fields of the object from a native JET_OBJECTINFO struct.
 /// </summary>
 /// <param name="value">
 /// The native objectlist to set the values from.
 /// </param>
 internal void SetFromNativeObjectinfo(NATIVE_OBJECTINFO value)
 {
 }