title: Mapping to Dictionary with iBATIS
body: <p>Given a simple statement, such as:</p>
  
  <pre><code>&lt;statement id="SelectProducts" resultMap="???"&gt;
    SELECT * FROM Products
  &lt;/statement&gt;
  </code></pre>
  
  <p>Is it possible to get a list of dictionary objects where the keys are the column names?
  ie.</p>
  
  <pre><code>var list = Mapper.QueryForList&lt;IDictionary&lt;string,string&gt;&gt;("SelectProducts", null);
  
  IDictionary&lt;string, string&gt; dict = list[0];
  // dict["id"] == "1"
  // dict["name"] == "Some Product Name"
  // dict["price"] == "$9.99"
  // etc.
  </code></pre>
  
  <p>I'd like to generalize the result of a query to handle any number of columns/column names without mapping to specific properties on some class.</p>
  
  <p>I realize the example here would fail since a result set may have duplicate (or null) column names. I've thought about a result class that holds an indexed list of key-value pairs. The key thing here is retaining the column information somewhere.</p>