<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Wrapping my mind around Slim Query Tables</title>
	<atom:link href="http://thetestingblog.com/2009/09/18/slim-query-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://thetestingblog.com/2009/09/18/slim-query-tables/</link>
	<description>Why, testing, of course!</description>
	<lastBuildDate>Tue, 14 Feb 2012 12:06:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Steve Barbour</title>
		<link>http://thetestingblog.com/2009/09/18/slim-query-tables/#comment-38</link>
		<dc:creator><![CDATA[Steve Barbour]]></dc:creator>
		<pubDate>Sat, 19 Sep 2009 05:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://thetestingblog.com/?p=222#comment-38</guid>
		<description><![CDATA[Well, I was going to remark that I would have returned a list of lists of dictionaries (List&lt;List&lt;Dictionary&gt;&gt;), but then I re-read and saw that it was asking for a list of lists of lists of strings (List&lt;List&lt;List&gt;&gt;).

So, tweeking the code you have above:
&lt;code&gt;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Hire.Steverb
{
    public static class SlimQueryResultsHelper
    {
        // Convert a result set in DataTable format to the format required by the Slim Query test table
        public static List&lt;List&lt;List&gt;&gt; ConvertDataTableToObjectList(DataTable theTable)
        {
            List&lt;List&lt;List&gt;&gt; queryResults = new List&lt;List&lt;List&gt;&gt;();
            foreach (DataRow row in theTable.Rows)
            {
                List&lt;List&gt; rowListOfColumnValuePairs = new List&lt;List&gt;();
                foreach (DataColumn col in theTable.Columns)
                {
                    List columnValuePair = new List();
                    object val = row[col];
                    columnValuePair.Add(col.ColumnName);
                    columnValuePair.Add(val == DBNull.Value ? &quot;null&quot; : val.ToString());
                    rowListOfColumnValuePairs.Add(columnValuePair);
                }
                queryResults.Add(rowListOfColumnValuePairs);
            }
            return queryResults;
        }
    }
}&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Well, I was going to remark that I would have returned a list of lists of dictionaries (List&lt;List&lt;Dictionary&gt;&gt;), but then I re-read and saw that it was asking for a list of lists of lists of strings (List&lt;List&lt;List&gt;&gt;).</p>
<p>So, tweeking the code you have above:<br />
<code><br />
using System;<br />
using System.Collections.Generic;<br />
using System.Data;<br />
using System.Text;</p>
<p>namespace Hire.Steverb<br />
{<br />
    public static class SlimQueryResultsHelper<br />
    {<br />
        // Convert a result set in DataTable format to the format required by the Slim Query test table<br />
        public static List&lt;List&lt;List&gt;&gt; ConvertDataTableToObjectList(DataTable theTable)<br />
        {<br />
            List&lt;List&lt;List&gt;&gt; queryResults = new List&lt;List&lt;List&gt;&gt;();<br />
            foreach (DataRow row in theTable.Rows)<br />
            {<br />
                List&lt;List&gt; rowListOfColumnValuePairs = new List&lt;List&gt;();<br />
                foreach (DataColumn col in theTable.Columns)<br />
                {<br />
                    List columnValuePair = new List();<br />
                    object val = row[col];<br />
                    columnValuePair.Add(col.ColumnName);<br />
                    columnValuePair.Add(val == DBNull.Value ? "null" : val.ToString());<br />
                    rowListOfColumnValuePairs.Add(columnValuePair);<br />
                }<br />
                queryResults.Add(rowListOfColumnValuePairs);<br />
            }<br />
            return queryResults;<br />
        }<br />
    }<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terina</title>
		<link>http://thetestingblog.com/2009/09/18/slim-query-tables/#comment-37</link>
		<dc:creator><![CDATA[Terina]]></dc:creator>
		<pubDate>Sat, 19 Sep 2009 03:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://thetestingblog.com/?p=222#comment-37</guid>
		<description><![CDATA[i have no idea what you are talking about, but i&#039;ll keep checking back just in case there is something i might understand sometime.:)]]></description>
		<content:encoded><![CDATA[<p>i have no idea what you are talking about, but i&#8217;ll keep checking back just in case there is something i might understand sometime.:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitter Trackbacks for Wrapping my mind around Slim Query Tables « The Testing Blog [thetestingblog.com] on Topsy.com</title>
		<link>http://thetestingblog.com/2009/09/18/slim-query-tables/#comment-35</link>
		<dc:creator><![CDATA[Twitter Trackbacks for Wrapping my mind around Slim Query Tables « The Testing Blog [thetestingblog.com] on Topsy.com]]></dc:creator>
		<pubDate>Fri, 18 Sep 2009 20:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://thetestingblog.com/?p=222#comment-35</guid>
		<description><![CDATA[[...] Wrapping my mind around Slim Query Tables « The Testing Blog  thetestingblog.com/2009/09/18/slim-query-tables &#8211; view page &#8211; cached  I started using the Slim test framework (the .NET implementation) about two weeks ago, but had worked primarily with scenario, script , and decision tables up until yesterday. (Scenario tables ROCK btw and I will blog about them soon). &#8212; From the page [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Wrapping my mind around Slim Query Tables « The Testing Blog  thetestingblog.com/2009/09/18/slim-query-tables &ndash; view page &ndash; cached  I started using the Slim test framework (the .NET implementation) about two weeks ago, but had worked primarily with scenario, script , and decision tables up until yesterday. (Scenario tables ROCK btw and I will blog about them soon). &mdash; From the page [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

