ylbtech- .NET-Basic:数据库SQL Server与C#中数据类型的对应关系 |
数据库SQL SServer与C#中数据类型的对应关系
1.A,返回顶部 |
数据库 | 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 |
本文转自ylbtech博客园博客,原文链接:http://www.cnblogs.com/ylbtech/p/3187607.html
,如需转载请自行联系原作者