应该用Convert.ChangeType转换一下,目标类型是PropertyInfo.PropertyTypeif (rowElement[columnElement.ColumnName] == DBNull.Value)
 {
 property.SetValue(element, null, null);
 }
 else
 {
 object rTargetValue=Convert.ChangeType(rowElement[columnElement.ColumnName],property.PropertyType);
 property.SetValue(element,rTargetValue , null);
 }