Refresh-air

清风明月本无价 近水远山皆有情
记载自己在码砖过程中遇到的点点滴滴.......

 

SQL Server类型的对应关系

bit bool
tinyint byte
smallint short
int int
bigint long
real float
float double
money decimal
datetime DateTime
char char
varchar string
nchar char
nvarchar string
text string
ntext string
image byte[]
binary byte[]
uniqueidentifier Guid
MSSQL Server类型
C#类型

DbType      sqltype

AnsiString:VarChar

Binary:VarBinary 

Byte:TinyInt 

Boolean:Bit 

Currency:Money 

Date:DateTime 

DateTime:DateTime 

Decimal:Decimal 

Double:Float 

Guid:UniqueIdentifier 

Int16:SmallInt 

Int32:Int 

Int64:BigInt 

Object:Variant 

Single:Real 

String:NVarChar 

Time:DateTime 

AnsiStringFixedLength:Char 

StringFixedLength:NChar 

Xml:Xml 

DateTime2:DateTime2 

DateTimeOffset:DateTimeOffset 

posted on 2013-10-08 16:18  笑清风  阅读(399)  评论(0编辑  收藏  举报

导航