Usage
-
Objects(IEnumerable<Object> objects)Creates documents from the specified objects.
objectsThe objects to create documents for.
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
AddKeyConversion(string originalKeyName, string newKeyName)Allows renaming of keys during document creation: "If you find key X, create it as key Y instead."
originalKeyNameThe name of the original key to convert.
newKeyNameThe name you want to convert the key to.
-
ExcludeKeys(params string[] keys)Allows creation of a list of keys to discard.
keysThe keys to discard.
-
IncludeKeys(params string[] keys)Allows creation of a list of keys to keep. If this list any members, any keys other than those in this list will be discarded.
keysThe keys to keep.
-
WithContentKey(string contentKey)Specifies which metakey should be used for the document content
contentKeyThe name of the content property.
-
WithLimit(int limit)Limits the number of created documents.
limitThe number of objects to create documents from.
