Ejemplo n.º 1
0
 public NestedRefTypeConverterMapping(TableRect rect, ITableTree tree, INestedTypeConverter <TTargetType> converter, IParseAddress parseaddress)
 {
     this.Rect             = rect;
     this.tableContext     = tree;
     this.parseAddress     = parseaddress;
     this.ConverterMapping = converter;
 }
 public NestedRefTypePropertyMapping(TableRect rect, Action <TEntity, TProperty> property, INestedTypeConverter <TProperty> typeConverter, ITableTree contex, IParseAddress parseaddress)
 {
     propertySetter    = property;
     propertyConverter = typeConverter;
     Rect         = rect;
     tableContext = contex;
     parseAddress = parseaddress;
 }
        protected NestedRefTypeConverterMapping <TTargetType> MapConverter <TTargetType>(int columnIndex, INestedTypeConverter <TTargetType> nestedTypeConverter, IParseAddress parse, ITableTree roottree)
        {
            var range   = new TableRect(columnIndex, 0);
            var mapping = new NestedRefTypeConverterMapping <TTargetType> (range, roottree, nestedTypeConverter, parse);

            AddConverterMapping <TTargetType>(mapping);

            return(mapping);
        }
        protected NestedConverterMapping <TTargetType> MapConverter <TTargetType>(int start, int end, INestedTypeConverter <TTargetType> nestedTypeConverter)
        {
            var rect            = new TableRect(start, 0, end - start + 1, 1);
            var propertyMapping = new NestedConverterMapping <TTargetType>(rect, nestedTypeConverter);

            AddConverterMapping(propertyMapping);

            return(propertyMapping);
        }
Ejemplo n.º 5
0
 public NestedConverterMapping(TableRect rect, INestedTypeConverter <TTargetType> nestedTypeConverter)
 {
     this.Rect             = rect;
     this.ConverterMapping = nestedTypeConverter;
 }
Ejemplo n.º 6
0
 public NestedPropertyMapping(TableRect range, Action <TEntity, TProperty> property, INestedTypeConverter <TProperty> typeConverter)
 {
     propertySetter    = property;
     propertyConverter = typeConverter;
     Rect = range;
 }