当前位置:首页 > 数据库 > Sqlserver

SQL SERVER中字段类型与C#数据类型的对应关系

C#程序

int

int32

text

string

bigint

int64

binary

System.Byte[]

bit

Boolean

char

string

datetime

System.DateTime

decimal

System.Decimal

float

System.Double

image

System.Byte[]

money

System.Decimal

nchar

String

ntext

String

numeric

System.Decimal

nvarchar

String

real

System.Single

smalldatetime

System.DateTime

smallint

Int16

smallmoney

System.Decimal

timestamp

System.DateTime

tinyint

System.Byte

varbinary

System.Byte[]

varchar

String

Variant

Object

unique identifier

System.Guid



参考资料:数据库字段类型对应C#数据类型   http://www.studyofnet.com/news/950.html


SQL SERVER中字段类型与C#数据类型的对应关系

标签:

本文系统来源:http://my.oschina.net/u/2428791/blog/502878


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!