object convertToSourceType(object pVal) { if (ConverterParse != null) { var v = ConverterParse.convert(pVal); if (v != null) { pVal = v; } } return(convertToType(pVal, column.DataType)); }
object convertToObjectType(object pVal) { if (ConverterFormat != null) { var v = ConverterFormat.convert(pVal); if (v != null) { pVal = v; } } return(convertToType(pVal, propertyInfo.PropertyType)); }