首页 > 数据库技术 > 详细

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

时间:2020-08-15 17:31:59      阅读:107      评论:0      收藏:0      [点我收藏+]

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 TypeMapping 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类型

原文:https://www.cnblogs.com/cxxtreasure/p/13509226.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!