Mysql和C#数据类型对应表 :
MySql | C# |
bigint | long |
bigint unsigned | ulong |
int | int |
int unsigned | uint |
smallint | short |
smallint unsigned | ushort |
guid | Guid |
smalldatetime | DateTime |
date | DateTime |
datetime | DateTime |
timestamp | DateTime |
float | float |
double | double |
numeric | decimal |
smallmoney | decimal |
decimal | decimal |
money | decimal |
bit | bool |
bool | bool |
boolean | bool |
tinyint | SByte |
tinyint unsigned | sbyte |
image | byte[] |
binary | byte[] |
blob | byte[] |
mediumblob | byte[] |
longblob | byte[] |
varbinary | byte[] |