Example #1
0
        public new DbProxyDataReader ExecuteReader()
        {
            DbProxyDataReader result = new DbProxyDataReader(this);

            DictNode contentNode = new DictNode();

            contentNode.Add("action", 4);
            byte[] sendMsg = BuildMessage(contentNode);
            connection.SendPacket(sendMsg);
            byte[] rcvMsg = connection.ReceivePacket();
            DecodeReader(rcvMsg, result.SchemaTable);
            return(result);
        }
Example #2
0
        public override void Close()
        {
            if (connection != null)
            {
                connection.Close();
            }

            if (dataReader != null)
            {
                dataReader = null;
            }

            ChangeState(ConnectionState.Closed);
        }