C# 数据类型 映射到SQL Server的数据类型
C# 数据类型 |
映射到SQL Server的数据类型 |
int |
int |
string |
nvarchar(Max) |
decimal |
decimal(18,2) |
float |
real |
byte[] |
varbinary(Max) |
datetime |
datetime |
bool |
bit |
byte |
tinyint |
short |
smallint |
long |
bigint |
double |
float |