Exemple #1
0
        public override ReturnValue getEntityList(string sql, Transaction trans)
        {
            PGateway    _gateway = new PGateway(this, trans);
            ReturnValue result   = _gateway.getEntityList(sql);

            return(result);
        }
Exemple #2
0
        public override ReturnValue getEntity(string sql)
        {
            PGateway    _gateway = new PGateway(this);
            ReturnValue result   = _gateway.getEntity(sql);

            //SaveLog(result, _gateway.TableName, "getEntity");

            return(result);
        }
Exemple #3
0
        public override ReturnValue Update()
        {
            ReturnValue _result = new ReturnValue();

            PGateway _gateway = new PGateway(this);

            _result = _gateway.Update();

            return(_result);
        }
Exemple #4
0
        public override ReturnValue ExecSql(string sql)
        {
            ReturnValue _result = new ReturnValue();

            PGateway _gateway = new PGateway(this);

            _result = _gateway.ExecSql(sql);



            return(_result);
        }
Exemple #5
0
        public override ReturnValue ExecSql(string sql, Transaction trans)
        {
            ReturnValue _result = new ReturnValue();


            PGateway _gateway = new PGateway(this, trans);

            _result = _gateway.ExecSql(sql);

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



            return(_result);
        }
Exemple #6
0
        public override ReturnValue Delete(Transaction trans)
        {
            ReturnValue _result = new ReturnValue();


            PGateway _gateway = new PGateway(this, trans);

            _result = _gateway.Delete();

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



            return(_result);
        }