Exemple #1
0
        public void Setup()
        {
            this.native = new NATIVE_INDEXLIST()
            {
                tableid = (IntPtr)0x1000,
                cRecord = 100,
                columnidindexname = 0,
                columnidgrbitIndex = 1,
                columnidcKey = 2,
                columnidcEntry = 3,
                columnidcPage = 4,
                columnidcColumn = 5,
                columnidiColumn = 6,
                columnidcolumnid = 7,
                columnidcoltyp = 8,
                columnidCountry = 9,
                columnidLangid = 10,
                columnidCp = 11,
                columnidCollate = 12,
                columnidgrbitColumn = 13,
                columnidcolumnname = 14,
                columnidLCMapFlags = 15,
            };

            this.converted = new JET_INDEXLIST();
            this.converted.SetFromNativeIndexlist(this.native);
        }
 /// <summary>
 /// Sets the fields of the object from a native JET_INDEXLIST struct.
 /// </summary>
 /// <param name="value">
 /// The native indexlist to set the values from.
 /// </param>
 internal void SetFromNativeIndexlist(NATIVE_INDEXLIST value)
 {
     this.tableid = new JET_TABLEID {
         Value = value.tableid
     };
     this.cRecord           = checked ((int)value.cRecord);
     this.columnidindexname = new JET_COLUMNID {
         Value = value.columnidindexname
     };
     this.columnidgrbitIndex = new JET_COLUMNID {
         Value = value.columnidgrbitIndex
     };
     this.columnidcKey = new JET_COLUMNID {
         Value = value.columnidcKey
     };
     this.columnidcEntry = new JET_COLUMNID {
         Value = value.columnidcEntry
     };
     this.columnidcPage = new JET_COLUMNID {
         Value = value.columnidcPage
     };
     this.columnidcColumn = new JET_COLUMNID {
         Value = value.columnidcColumn
     };
     this.columnidiColumn = new JET_COLUMNID {
         Value = value.columnidiColumn
     };
     this.columnidcolumnid = new JET_COLUMNID {
         Value = value.columnidcolumnid
     };
     this.columnidcoltyp = new JET_COLUMNID {
         Value = value.columnidcoltyp
     };
     this.columnidLangid = new JET_COLUMNID {
         Value = value.columnidLangid
     };
     this.columnidCp = new JET_COLUMNID {
         Value = value.columnidCp
     };
     this.columnidgrbitColumn = new JET_COLUMNID {
         Value = value.columnidgrbitColumn
     };
     this.columnidcolumnname = new JET_COLUMNID {
         Value = value.columnidcolumnname
     };
     this.columnidLCMapFlags = new JET_COLUMNID {
         Value = value.columnidLCMapFlags
     };
 }
Exemple #3
0
 /// <summary>
 /// Sets the fields of the object from a native JET_INDEXLIST struct.
 /// </summary>
 /// <param name="value">
 /// The native indexlist to set the values from.
 /// </param>
 internal void SetFromNativeIndexlist(NATIVE_INDEXLIST value)
 {
     this.tableid = new JET_TABLEID { Value = value.tableid };
     this.cRecord = checked((int)value.cRecord);
     this.columnidindexname = new JET_COLUMNID { Value = value.columnidindexname };
     this.columnidgrbitIndex = new JET_COLUMNID { Value = value.columnidgrbitIndex };
     this.columnidcKey = new JET_COLUMNID { Value = value.columnidcKey };
     this.columnidcEntry = new JET_COLUMNID { Value = value.columnidcEntry };
     this.columnidcPage = new JET_COLUMNID { Value = value.columnidcPage };
     this.columnidcColumn = new JET_COLUMNID { Value = value.columnidcColumn };
     this.columnidiColumn = new JET_COLUMNID { Value = value.columnidiColumn };
     this.columnidcolumnid = new JET_COLUMNID { Value = value.columnidcolumnid };
     this.columnidcoltyp = new JET_COLUMNID { Value = value.columnidcoltyp };
     this.columnidLangid = new JET_COLUMNID { Value = value.columnidLangid };
     this.columnidCp = new JET_COLUMNID { Value = value.columnidCp };
     this.columnidgrbitColumn = new JET_COLUMNID { Value = value.columnidgrbitColumn };
     this.columnidcolumnname = new JET_COLUMNID { Value = value.columnidcolumnname };
     this.columnidLCMapFlags = new JET_COLUMNID { Value = value.columnidLCMapFlags };
 }