Entity Framework Mapping SQL Server tinyint to Int16

后端 未结 1 1859
攒了一身酷
攒了一身酷 2020-12-30 21:16

My Entity Data Model is giving me this error:

Error 2019: Member Mapping specified is not valid. The type \'Edm.Int16[Nullable=True,DefaultValue=]

1条回答
  •  迷失自我
    2020-12-30 21:31

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

    0 讨论(0)
提交回复
热议问题