GetDictionary(DataRow) Method
Used to convert each object from GetItems(IExecutionContext) into a IDictionary<string, object>. The base implementation checks if the object implements IDictionary<string, object> and just performs a cast is if it does. If not, reflection is used to construct a IDictionary<string, object> from all of the object's properties. Override this method to provide an alternate way of getting key-value pairs for each object.
Namespace
Statiq.Core
Containing Type
ReadSql
Overridden
GetDictionary(DataRow)

Syntax

protected override IDictionary<string, object> GetDictionary(DataRow row)

Parameters

Name Type Description
row DataRow

Return Value

Type Description
IDictionary<string, object> A IDictionary<string, object> containing the data used for document creation.