guids code first ctp5

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
iguanamind
Posts: 8
Joined: Mon 28 Feb 2011 22:34

guids code first ctp5

Post by iguanamind » Wed 09 Mar 2011 22:50

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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 11 Mar 2011 13:41

Thank you for the report, I have reproduced the problem.
I will let you know about the results of our investigation.

iguanamind
Posts: 8
Joined: Mon 28 Feb 2011 22:34

Post by iguanamind » Fri 11 Mar 2011 15:36

Thanks. I think it's the only thing holding us back on moving forward. It would be great if you fix it.

iguanamind
Posts: 8
Joined: Mon 28 Feb 2011 22:34

Post by iguanamind » Tue 22 Mar 2011 16:58

Just wondering if anything had been done with this. *bump*

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 24 Mar 2011 15:26

We have fixed the problem with Guids. The fix will be available in the nearest build (unfortunately, not in the one released today)

iguanamind
Posts: 8
Joined: Mon 28 Feb 2011 22:34

Post by iguanamind » Thu 24 Mar 2011 15:31

Thanks. I look forward to the next release.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 07 Apr 2011 12:39

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.

iguanamind
Posts: 8
Joined: Mon 28 Feb 2011 22:34

Post by iguanamind » Fri 08 Apr 2011 17:28

Thanks I will check it out.

Post Reply