Beispiel #1
0
 private Exception GetConvertException(object value, EtlFieldMapping mapping, Type targetType)
 {
     return(new FormatException
            (
                string.Format
                (
                    Properties.Resources.FieldCannotBeConverted,
                    mapping.SourceFieldName,
                    value,
                    targetType.FullName
                )
            ));
 }
 private object MapValue(EtlFieldMapping mapping)
 {
     var mappedValue = EtlValueTranslation.Evaluate(mapping.SourceFieldName, mapping.SourceFieldTranslation, _sourceReader, mapping.DefaultValue);
     return mappedValue;
 }
 private Exception GetConvertException(object value, EtlFieldMapping mapping, Type targetType)
 {
     return new FormatException
     (
         string.Format
         (
             Properties.Resources.FieldCannotBeConverted,
             mapping.SourceFieldName,
             value,
             targetType.FullName
         )
     );
 }
Beispiel #4
0
        private object MapValue(EtlFieldMapping mapping)
        {
            var mappedValue = EtlValueTranslation.Evaluate(mapping.SourceFieldName, mapping.SourceFieldTranslation, _sourceReader, mapping.DefaultValue);

            return(mappedValue);
        }