Beispiel #1
0
                object convertToSourceType(object pVal)
                {
                    if (ConverterParse != null)
                    {
                        var v = ConverterParse.convert(pVal);
                        if (v != null)
                        {
                            pVal = v;
                        }
                    }

                    return(convertToType(pVal, column.DataType));
                }
Beispiel #2
0
                object convertToObjectType(object pVal)
                {
                    if (ConverterFormat != null)
                    {
                        var v = ConverterFormat.convert(pVal);
                        if (v != null)
                        {
                            pVal = v;
                        }
                    }

                    return(convertToType(pVal, propertyInfo.PropertyType));
                }