SQL Server tinyint to Int16 Entity Framework Mapping

entity-framework sql-server types

Question

I'm getting the following problem in my entity data model:

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 attempted to delete and create the property again. I'm unsure of what I did incorrectly.

1
35
5/2/2011 10:28:07 PM

Accepted Answer

A tinyint ought to be mapped to a.NETbyte ; Int16 the appropriate type should be for asmallint in SQL.

73
4/10/2017 6:12:03 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow