Table of Contents

Class MergeDataSource

Namespace
DocWright.MailMerge
Assembly
DocWright.MailMerge.dll

Builds IMergeDataReaders over the shapes a host is likely to already have.

public static class MergeDataSource
Inheritance
MergeDataSource
Inherited Members

Remarks

None of these touches a database, a file or a network. Mail merge consumes rows the host hands it; where those rows came from is the host's business, and keeping it that way is what lets this package have zero dependencies.

Methods

FromDictionaries(IEnumerable<IDictionary<string, object?>>)

Opens a reader over dictionary rows.

FromDictionary(IDictionary<string, object?>)

Opens a reader over one dictionary row, for a single-record merge.

FromObjectsByReflection<T>(IEnumerable<T>)

Opens a reader over typed records, binding every public readable instance property and field by name.

FromObjects<T>(IEnumerable<T>, MergeFieldMap<T>)

Opens a reader over typed records bound through an explicit field map.