.NET Framework 在 System.Data.DbType 中定义了.NET Framework 数据提供程序的字
段、属性或 Parameter 对象的数据类型。DmProvider 数据类型就是 Dm.DmDbType 中定义
的数据类型。
表 5.1 DmProvider 数据类型和.NET Framework 数据类型的对应关系
DbType 类型 |
DmProvider 类型 |
DbType 类型 |
DmProvider 类型 |
AnsiString |
VarChar |
Int32 |
Int32 |
AnsiStringFixedLength |
VarChar |
Int64 |
Int64 |
Binary |
Binary |
Object |
Blob |
Boolean |
Bit |
SByte |
SByte |
Byte |
Byte |
Single |
Float |
Currency |
Decimal |
String |
VarChar |
Date |
Date |
StringFixedLength |
Char |
DateTime |
DateTime |
Time |
Time |
Decimal |
Decimal |
UInt16 |
UInt16 |
Double |
Double |
UInt32 |
UInt32 |
Guid |
VarChar |
UInt64 |
UInt64 |
Int16 |
Int16 |
VarNumeric |
XDEC |
表 5.2 DM 建表语句支持类型与.NET Framework 中类型的对应关系
DM 建表语句类型 |
.NET 中对应的类型 |
DM 建表语句类型 |
.NET 中对应的类型 |
CHAR |
typeof(String) |
DOUBLE |
typeof(Double) |
VARCHAR |
typeof(String) |
BLOB |
typeof(Byte[]) |
BIT |
typeof(Boolean) |
DATE |
typeof(DateTime) |
TINYINT |
typeof(SByte) |
TIME |
typeof(DateTime) |
SMALLINT |
typeof(Int16) |
TIMESTAMP |
typeof(DateTime) |
INT |
typeof(Int32) |
BINARY |
typeof(Byte[]) |
BIGINT |
typeof(Int64) |
VARBINARY |
typeof(Byte[]) |
DEC |
typeof(Decimal) |
CLOB |
typeof(String) |
REAL |
typeof(Single) |
INTERVAL |
typeof(Object) |
评论