protected CsvCollectionPropertyMapping <TEntity, TProperty> MapProperty <TProperty>(RangeDefinition range, Expression <Func <TEntity, TProperty> > property, IArrayTypeConverter <TProperty> typeConverter) { var propertyMapping = new CsvCollectionPropertyMapping <TEntity, TProperty>(property, typeConverter); AddPropertyMapping(range, propertyMapping); return(propertyMapping); }
private void AddPropertyMapping <TProperty>(RangeDefinition range, CsvCollectionPropertyMapping <TEntity, TProperty> propertyMapping) { var rangeToPropertyMapping = new RangeToPropertyMapping { Range = range, PropertyMapping = propertyMapping }; csvRangePropertyMappings.Add(rangeToPropertyMapping); }