Page 1 of 1

System.InvalidCastException: Object must implement IConverti

Posted: Thu 23 Jun 2011 12:24
by jlentrichia
System.InvalidCastException: Object must implement IConvertible

I have a table with a VersionNumber column, not sure if this is related. But there are about 50 columns in this table, not sure which is throwing the error. I removed the VersionNumber column, but for some reason the generated SQL is still pulling this from the database. Any idea what's going on?

-Joe

SQL log here:


SELECT VersionNumber FROM dbo.ContactBase WHERE ContactId = @key1
-- key1: Input UniqueIdentifier (Size = 0; DbType = Guid) [71618408-7613-de11-bc5e-005056a0787b]
-- Context: Devart.Data.SqlServer.Linq.Provider.SqlDataProvider Model: ap Build: 2.50.24.0

Posted: Fri 24 Jun 2011 13:21
by StanislavK
Could you please describe this table and the corresponding entity class in more details? For example, please specify the data types used for the table columns, and whether some of entity fields are joined into complex types. If possible, please specify the script needed to create this table, or send us the model with which you encounter this problem.

Posted: Fri 24 Jun 2011 13:41
by jlentrichia
i will email you the schema. it's not many tables but the tables have many columns. no complex types. at least none that i created, i'm assuming these aren't derived from the DB.

Posted: Mon 27 Jun 2011 08:18
by StanislavK
We've answered you by mail.