public void Setup()
 {
     this.managed = new JET_COLUMNCREATE()
     {
         szColumnName = "column9",
         coltyp = JET_coltyp.Binary,
         cbMax = 0x42,
         grbit = ColumndefGrbit.ColumnAutoincrement,
         pvDefault = null,
         cbDefault = 0,
         cp = JET_CP.Unicode,
         columnid = new JET_COLUMNID { Value = 7 },
         err = JET_err.RecoveredWithoutUndo,
     };
     this.native = this.managed.GetNativeColumnCreate();
 }
        public void Setup()
        {
            this.nativeSource = new NATIVE_COLUMNCREATE()
            {
                szColumnName = Marshal.StringToHGlobalAnsi("column9"),
                coltyp = (uint)JET_coltyp.Binary,
                cbMax = 0x42,
                grbit = (uint)ColumndefGrbit.ColumnAutoincrement,
                pvDefault = IntPtr.Zero,
                cbDefault = 0,
                cp = (uint)JET_CP.Unicode,
                columnid = 7,
                err = (int)JET_err.RecoveredWithoutUndo,
            };

            this.managedTarget = new JET_COLUMNCREATE();
            this.managedTarget.SetFromNativeColumnCreate(this.nativeSource);
        }
示例#3
0
        public void Setup()
        {
            this.nativeSource = new NATIVE_COLUMNCREATE()
            {
                szColumnName = EseInteropTestHelper.MarshalStringToHGlobalAnsi("column9"),
                coltyp       = (uint)JET_coltyp.Binary,
                cbMax        = 0x42,
                grbit        = (uint)ColumndefGrbit.ColumnAutoincrement,
                pvDefault    = IntPtr.Zero,
                cbDefault    = 0,
                cp           = (uint)JET_CP.Unicode,
                columnid     = 7,
                err          = (int)JET_err.RecoveredWithoutUndo,
            };

            this.managedTarget = new JET_COLUMNCREATE();
            this.managedTarget.SetFromNativeColumnCreate(ref this.nativeSource);
        }
示例#4
0
 public void Setup()
 {
     this.managed = new JET_COLUMNCREATE()
     {
         szColumnName = "column9",
         coltyp       = JET_coltyp.Binary,
         cbMax        = 0x42,
         grbit        = ColumndefGrbit.ColumnAutoincrement,
         pvDefault    = null,
         cbDefault    = 0,
         cp           = JET_CP.Unicode,
         columnid     = new JET_COLUMNID {
             Value = 7
         },
         err = JET_err.RecoveredWithoutUndo,
     };
     this.native = this.managed.GetNativeColumnCreate();
 }