Summary
Creates documents from a set of objects. Any input documents will be ignored.
The objects can be anything, and the collection can be heterogenous.
Dictionary<string, object> will be handled natively and each key-value pair
will be added to the output document metdata.
Anything else will be reflected and turned into a Dictionary<string, object>
with metadata for each property.
- Assembly
- Wyam
.Core .dll - Namespace
- Wyam
.Core .Modules .Metadata - Interfaces
- Base Types
-
- Object
- ReadDataModule
<Objects, Object>
graph BT
Type-->Base0["ReadDataModule<Objects, Object>"]
Base0-->Base1["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["Objects"]
class Type type-node
Syntax
public class Objects : ReadDataModule<Objects, Object>, IModule
Constructors
Name | Summary |
---|---|
Objects |
Creates documents from the specified objects. |
Methods
Name | Value | Summary |
---|---|---|
GetItems |
IEnumerable |
Gets the items to convert to documents. The
Wyam.Common.Modules.ReadDataModule`2.GetDictionary(`1) method
is used to convert each item into a series of key-value pairs that is then used for
document creation.
|