EF属性类型对应数据库sql server类型

https://www.entityframeworktutorial.net/code-first/configure-one-to-many-relationship-in-code-first.aspx#conventions-for-one-to-many-ef6

The following table list C# data type mapped with SQL Server data type.

C# Data Type Mapping to SQL Server Data Type
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
char No mapping
sbyte No mapping
(throws exception)
object No mapping

EF属性类型对应数据库sql server类型

上一篇:MongoDB实现批量存在执行修改,不存在执行添加(BulkWrite)


下一篇:在Oracle VM VirtualBox下创建的centos虚拟机联网问题