Index: MappedStatement.cs =================================================================== --- MappedStatement.cs (revision 381) +++ MappedStatement.cs (working copy) @@ -1250,7 +1250,9 @@ Hashtable propertyMap = new Hashtable(); for (int i = 0; i < propertiesName.Length; i++) { - propertyMap.Add( propertiesName[i], reflectionInfo.GetSetter(propertiesName[i]) ); + // propertyMap.Add( propertiesName[i].ToUpper(System.Globalization.CultureInfo.InvariantCulture), reflectionInfo.GetSetter(propertiesName[i]) ); + // propertyMap.Add( propertiesName[i].ToLower(), reflectionInfo.GetSetter(propertiesName[i]) ); + propertyMap.Add( propertiesName[i].ToUpper(), reflectionInfo.GetSetter(propertiesName[i]) ); } // Get all column Name from the reader @@ -1259,7 +1261,9 @@ for (int i = 0; i < dataColumn.Rows.Count; i++) { string columnName = dataColumn.Rows[i][0].ToString(); - PropertyInfo matchedPropertyInfo = propertyMap[columnName] as PropertyInfo; + // PropertyInfo matchedPropertyInfo = propertyMap[columnName.ToUpper(System.Globalization.CultureInfo.InvariantCulture)] as PropertyInfo; + // PropertyInfo matchedPropertyInfo = propertyMap[columnName.ToLower()] as PropertyInfo; + PropertyInfo matchedPropertyInfo = propertyMap[columnName.ToUpper()] as PropertyInfo; ResultProperty property = new ResultProperty(); property.ColumnName = columnName; @@ -1277,7 +1281,7 @@ } // Set TypeHandler - Type propertyType = reflectionInfo.GetSetterType(columnName); + Type propertyType = reflectionInfo.GetSetterType(property.PropertyName); property.TypeHandler = TypeHandlerFactory.GetTypeHandler( propertyType ); } }