Entity Framework : The type of the key field is expected to be but the value provided is actually of type
Posted by: Broken Pipe
Date: May 28, 2009 03:35PM

I'm using NET Connector 6.0.3 with Entity Framework, i think there is a bug in Column Data Types..
I have simple table id MySQL 5.1 DB that contains column of type "smallint(3) unsigned", the in generated Entity Model this column is of type int16... both in ssdl and csdl... At runtime its type is ushort and i when i for example detach and attach entity i receive exception:

The type of the key field 'myfield' is expected to be 'System.Int16', but the value provided is actually of type 'System.UInt16'.

Wrong scheme reporting from Net Connector?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.