<% group # Execute Methods %>

The ExecuteScalarDictionary method executes the query, and returns the dictionary. The keys are loaded from a column specified by the keyField parameter and values are loaded from a column specified by the valueField. Other columns are ignored.

ExecuteScalarDictionary.cs <% ..\..\..\HowTo\Data\ExecuteScalarDictionary.cs %> App.config <% Doc\Data\App.config %> Create.sql script