Page 1 of 1

guids code first ctp5

Posted: Wed 09 Mar 2011 22:50
by iguanamind
I am getting the following error with EF4 code first ctp5 and dotConnect for SQLite:

System.InvalidCastException: Unable to cast object of type 'System.Guid' to type 'System.Byte[]'.

Is there anything that needs to be done to save Guid to SQLite through dotConnect? When I exclude this property from my class, everything works perfectly. The properties are all mapped, the table gets created. No problems. But I have to be able to save a Guid.

Posted: Fri 11 Mar 2011 13:41
by AndreyR
Thank you for the report, I have reproduced the problem.
I will let you know about the results of our investigation.

Posted: Fri 11 Mar 2011 15:36
by iguanamind
Thanks. I think it's the only thing holding us back on moving forward. It would be great if you fix it.

Posted: Tue 22 Mar 2011 16:58
by iguanamind
Just wondering if anything had been done with this. *bump*

Posted: Thu 24 Mar 2011 15:26
by AndreyR
We have fixed the problem with Guids. The fix will be available in the nearest build (unfortunately, not in the one released today)

Posted: Thu 24 Mar 2011 15:31
by iguanamind
Thanks. I look forward to the next release.

Posted: Thu 07 Apr 2011 12:39
by AndreyR
The new build of dotConnect for SQLite 3.10.135 is available for download now. This build fixes the problem.
It can be downloaded from Download Page (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to this announcement.

Posted: Fri 08 Apr 2011 17:28
by iguanamind
Thanks I will check it out.