//
        /// <summary>
        /// get DefaultNpgCommandAdaptor
        /// </summary>
        /// <param name="trxContext"></param>
        /// <param name="sqlText"></param>
        /// <returns></returns>
        protected SAPCommandAdapter GetSAPCommandAdaptor(TransactionContext trxContext, String sqlText)
        {
            if (configParameters == null)
            {
                configParameters = SetConnectionParameters();
            }

            if (rfcDestination == null)
            {
                rfcDestination = RfcDestinationManager.GetDestination(configParameters);
            }

            SAPCommandAdapter sapCommandAdapter = new DefaultSAPCommandAdaptor(rfcDestination, sqlText);


            return(sapCommandAdapter);
        }
Beispiel #2
0
        //
        /// <summary>
        /// get DefaultNpgCommandAdaptor
        /// </summary>
        /// <param name="trxContext"></param>
        /// <param name="sqlText"></param>
        /// <returns></returns>
        protected SAPCommandAdapter GetSAPCommandAdaptor(TransactionContext trxContext, String sqlText)
        {
            SAPCommandAdapter sapCommandAdapter = new DefaultSAPCommandAdaptor(trxContext, sqlText);

            return(sapCommandAdapter);
        }