示例#1
0
        public static PyObject DBResultToCRowset(ref MySqlDataReader result)
        {
            DBRowDescriptor header = new DBRowDescriptor(ref result);
            CRowset         rowset = new CRowset(header);

            while (result.Read())
            {
                rowset.Insert(CreatePackedRow(header, ref result));
            }

            return(rowset.Encode());
        }
示例#2
0
文件: DBUtils.cs 项目: Reve/EVESharp
        public static PyObject DBResultToCRowset(ref MySqlDataReader result)
        {
            DBRowDescriptor header = new DBRowDescriptor(ref result);
            CRowset rowset = new CRowset(header);

            while (result.Read())
            {
                rowset.Insert(CreatePackedRow(header, ref result));
            }

            return rowset.Encode();
        }