开发者

Entity Framework Mapping SQL Server tinyint to Int16

开发者 https://www.devze.com 2023-03-02 21:56 出处:网络
My Entity Data Model is giving me this error: Error 2019: Member Mapping specified is not valid. The type

My Entity Data Model is giving me this error:

Error 2019: Member Mapping specified is not valid. The type 'Edm.Int16[Nullable=True,DefaultValue=]' of ... is not compatible with 'SqlServer.tinyint[Nullable=True,DefaultValue=]' of ...

I've tried deleti开发者_运维技巧ng and recreating the property. I don't know what I've done wrong.


A tinyint should get mapped to a .NET byte; Int16 should be the corresponding type for a smallint in SQL.

0

精彩评论

暂无评论...
验证码 换一张
取 消