Example #1
0
        internal PhoenixDataReader(PhoenixConnection connection, ResultSetResponse response)
        {
            if (null == connection)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (null == response)
            {
                throw new ArgumentNullException(nameof(response));
            }

            _connection = connection;

            GarudaResultSet grs = new GarudaResultSet(response.Signature, response.FirstFrame, response.UpdateCount);

            _resultSets.Add(grs);
        }
Example #2
0
        internal PhoenixDataReader(PhoenixCommand cmd, GarudaExecuteResponse response)
        {
            if (null == cmd)
            {
                throw new ArgumentNullException("cmd");
            }
            if (null == response)
            {
                throw new ArgumentNullException("response");
            }

            _connection  = (PhoenixConnection)cmd.Connection;
            _statementId = response.StatementId;

            //_response = response.Response.Results.ToList();
            _resultSets = new List <GarudaResultSet>();
            foreach (var res in response.Response.Results)
            {
                GarudaResultSet grs = new GarudaResultSet(res.Signature, res.FirstFrame, res.UpdateCount);
                _resultSets.Add(grs);
            }
        }