CsvFileMappingBuilder Class
Definition
Namespace: DataStandardizer.File.CSV
The entry point to the fluent mapping pipeline. Its Property<T> method selects a property to map and returns the first step interface of the CsvFieldMappingBuilder pipeline.
Syntax
public sealed class CsvFileMappingBuilder<TModel> where TModel : class
Remarks
You obtain a CsvFileMappingBuilder<TModel> from the protected Map() method of CsvFileMapperBase or CsvFileCustomMapperBase; its constructors are internal. Call Property<T> once per property and chain the returned step interfaces to configure the field. The mapping is keyed by the property key: the name given by CsvFieldAttribute, or else the property name. Without HasFieldName or HasFieldIndex, that key is also the field name. See CsvFieldMappingBuilder for the full fluent pipeline.
Methods
Implicit implementation
| Method | Returns | Notes |
|---|---|---|
Property<T>(Expression<Func<TModel, T>> mappedPropertyExpression) | ICsvFieldMappingInitialBuilder<TModel, T> | Selects the property to map and begins the fluent pipeline. Throws ArgumentNullException if the expression is null, or ArgumentException if it is not a member access. |
Applies to
Targets netstandard1.1, netstandard2.0, netstandard2.1, and net10.0.