3.6. Supported Types for Parameter Maps and Result Maps

Table 3.4 shows the basic Supported Types for Parameter Maps and Result Maps for .NET. You can extend the framework's support for additional types by using a Custom Type Handler.

[Note]Note

Nuallable type from .NET 2.0 are fully supported by iBATIS.NET.

Table 3.4. Supported Types for Parameter Maps and Result Maps (.NET)

CLR TypeObject/Map Property MappingResult Class/Parameter Class**Type Alias**
System.ArrayListYesYeslist
System.BooleanYesYesBoolean, bool
System.ByteYesYesByte, byte
System.CharYesYesChar, char
System.DateTimeYesYesdateTime, date
System.DecimalYesYesDecimal, decimal
System.DoubleYesYesDouble, double
System.GuidYesYesguid
System.HashtableYesYesmap, hashmap, hashtable
System.Int16YesYesInt16, short, Short
System.Int32YesYesInt32, int, Int, integer, Integer
System.Int64YesYesInt64, long, Long
System.SByteYesYesSByte, sbyte
System.SingleYesYesFloat, float, Single, single
System.StringYesYesString, string
System.TimeSpanYesYesN/A
System.UInt16YesYesShort, short
System.UInt32YesYesUint, uint
System.UInt64YesYesUlong, ulong
Nullable<bool>YesYesbool?
Nullable<byte>YesYesbyte?
Nullable<char>YesYeschar?
Nullable<DateTime>YesYesDateTime?
Nullable<decimal>YesYesdecimal?
Nullable<double>YesYesdouble?
Nullable<Int16>YesYesInt16?
Nullable<Int32>YesYesInt32?
Nullable<Int64>YesYesInt64?
Nullable<SByte>YesYesSByte?
Nullable<Single>YesYesSingle?
Nullable<UInt16>YesYesUInt16?
Nullable<UInt32>YesYesUInt32?
Nullable<UInt64>YesYesUInt64?