guids code first ctp5
Posted: 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.
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.