Пример #1
0
        protected virtual ReturnValue Save(string sql)
        {
            ReturnValue _result = new ReturnValue();

            NGateway _gateway = new NGateway(this);

            _result = _gateway.Save(sql);


            return(_result);
        }
Пример #2
0
        protected virtual ReturnValue Save(string sql, Transaction trans)
        {
            ReturnValue _result = new ReturnValue();


            NGateway _gateway = new NGateway(this, trans);

            _result = _gateway.Save(sql);

            if (_result.Success == false)
            {
                if (trans != null)
                {
                    trans.RollbackTransaction();
                }
                return(_result);
            }



            return(_result);
        }