SQL Server Mobile 和 .NET 数据访问接口之间的数据类型映射
| .NET 数据类型 | SQL Server Mobile 数据类型 |
|---|---|
|
binary |
varbinary |
|
boolean |
bit |
|
byte |
tinyint |
|
byte[] |
varbinary |
|
datetime |
datetime |
|
decimal |
numeric |
|
double |
float |
|
guid |
uniqueidentifier |
|
image |
image |
|
int16 |
smallint |
|
Uint16 |
uint16 |
|
int32 |
int |
|
Uint32 |
uint32 |
|
int64 |
bigint |
|
Uint64 |
uint64 |
|
SqlBinary |
varbinary |
|
SqlBoolean |
bit |
|
SqlByte |
tinyint |
|
SqlDecimal |
numeric |
|
SqlDateTime |
datetime |
|
SqlDouble |
float |
|
SqlGuid |
uniqueidentifier |
|
SqlInt16 |
smallint |
|
SqlInt32 |
int |
|
SqlInt64 |
bigint |
|
SqlMoney |
money |
|
SqlSingle |
real |
|
SqlString |
nvarchar |
|
single |
real |
|
string |
nvarchar |
SQL Server Mobile 支持的 SqlDecimal 数据类型只能达到 96 位。如果超过 96 位,SQL Server Mobile 将引发溢出异常错误。

浙公网安备 33010602011771号