c#数据类型 | sql数据类型 | c#后缀(推荐大写) |
int | int |
|
short | smallint | |
byte | tinyint | |
long | bigint | L |
boolean | bit | |
double | float | D |
float | real | F |
decimal | money | M |
decimal | numeric | M |
string | char,varchar,nvarchar,text | |
byte[] | text,image,binarry | |
DateTime | datetime | |
Guid | uniqueidentifier |