示例#1
0
        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);
        }
示例#2
0
        private void AddPropertyMapping <TProperty>(RangeDefinition range, CsvCollectionPropertyMapping <TEntity, TProperty> propertyMapping)
        {
            var rangeToPropertyMapping = new RangeToPropertyMapping
            {
                Range           = range,
                PropertyMapping = propertyMapping
            };

            csvRangePropertyMappings.Add(rangeToPropertyMapping);
        }