分享

SQL Server 2005 数据类型和.Net数据类型的对应关系

 歆馨 2011-06-29

转载  SQL Server 2005 数据类型和.Net数据类型的对应关系 收藏

SQL Server 2005 数据类型 .NET Framework 数据类型 LINQ 数据类型

bigint

System.Int64

long

binary

System.Byte[]

System.Data.Linq.Binary

bit

System.Boolean

bool

char

System.String

string

datetime

System.DateTime

System.DateTime

decimal

System.Decimal

decimal

float

System.Double

double

image

System.Byte[]

System.Data.Linq.Binary

int

System.Int32

int

money

System..Decimal

decimal

nchar

System.String

string

ntext

System.String

string

numeric

System.Decimal

decimal

nvarchar

System.String

string

real

System.Single

float

smalltime 

System.DateTime

System.DateTime

smallint

System.Int16

short

smallmoney 

System.Decimal

decimal

sql_variant

System.Object

object

text 

System.String

string

timestamp

System.Byte[]

System.Data.Linq.Binary

tinyint

System.Byte

byte

uniqueidentifier

System.Guid

System.Guid

varbinary

System.Byte[]

System.Data.Linq.Binary

varchar

System.String

string

xml

System.String

System.Xml.Linq.XElement

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约