Ibatis.Net支持的数据类型

Table 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?

Table supported DbTypes for Parameter Maps and Result Maps (.NET)

CLR TypeiBATIS supportSqlDbTypeOleDbTypeOdbcTypeOracleType
Byte[]YesBinary, Image, VarBinaryBinary, VarBinaryBinary, Image, VarBinaryRaw
Boolean, bool?YesBitBooleanBitByte
Byte, byte?YesTinyInt-TinyIntByte
DateTime, DateTime?YesDateTime, SmallDateTimeDateDate, DateTime, SmallDateTime, TimeDateTime
char, char?YesNot supportedCharCharByte
Decimal, decimal?YesDecimal, Money, SmallMoneyDecimal, Currency, NumericDecimal, NumericNumber
Double, double?YesFloatDoubleDoubleDouble
Guid, Guid?YesUniqueIdentifierGuidUniqueIdentifierRaw
Int16, Int16?YesSmallIntSmallIIntSmallIntInt16
Int32, Int32?YesIntIntegerIntInt32
Int64, Int64?YesBigIntBigIntBigIntNumber
Single, Single?YesRealSingleRealFloat
StringYesChar, Nchar, NVarchar, Text, VarCharChar, VarCharChar, NChar, NText, NVarChar, Text, VarCharNVarChar, VarChar
TimeSpanNoNot supportedDBTimeTimeDateTime
UInt16, UInt16?yesInt--UInt16
UInt32, UInt32?yesDecimal--UInt32
UInt64, UInt64?yesDecimal--Number

转载于:https://www.cnblogs.com/jifsu/archive/2010/03/01/1675343.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值