Exemple #1
0
        private static extern RCODE xflaim_Db_transBegin(
			IntPtr			pDb,
			eDbTransType	eTransType,
			uint				uiMaxLockWait,
			DbTransFlags	uiFlags);
Exemple #2
0
        //-----------------------------------------------------------------------------
        // transBegin
        //-----------------------------------------------------------------------------
        /// <summary>
        /// Starts a transaction.
        /// </summary>
        /// <param name="eTransType">
        /// The type of transaction (<see cref="eDbTransType"/>)
        /// </param>
        /// <param name="uiMaxLockWait">
        /// Specifies the amount of time to wait for lock requests occuring
        /// during the transaction to be granted.  Valid values are 0 through
        /// 255 seconds.  Zero is used to specify no-wait locks.  255 specifies
        /// that there is no timeout.
        /// </param>
        /// <param name="uiFlags">
        /// Should be a logical OR'd combination of the members of
        /// <see cref="DbTransFlags"/>
        /// </param>
        /// <returns></returns>
        public void transBegin(
			eDbTransType	eTransType,
			uint				uiMaxLockWait,
			DbTransFlags	uiFlags)
        {
            RCODE				rc;

            if ((rc = xflaim_Db_transBegin( m_pDb,
                eTransType, uiMaxLockWait, uiFlags)) != 0)
            {
                throw new XFlaimException(rc);
            }
        }