コード例 #1
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(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;
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: jet_objectinfo.cs プロジェクト: jtmueller/ravendb
 /// <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;
     }
 }
コード例 #4
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(NATIVE_OBJECTINFO value)
 {
 }
コード例 #5
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(NATIVE_OBJECTINFO value)
 {
 }