Summary
Used to convert each object from Wyam.Common.Modules.ReadDataModule`2.GetItems(System.Collections.Generic.IReadOnlyList{Wyam.Common.Documents.IDocument},Wyam.Common.Execution.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.
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. |