public override ReturnValue ExecSql(string sql) { ReturnValue _result = new ReturnValue(); PGateway _gateway = new PGateway(this); _result = _gateway.ExecSql(sql); return(_result); }
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); }