This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Lightspeed (v4 & v5 beta) does not seem to work properly with LocalDB v.11 with Guid(Comb) Ids. From my recollection, it doesn't have these problems with LocalDB v.10...
This behaviour is also apparent during runtime / debugging: uow.SaveChanges() fails as it expects an int32 Id. Is this a bug, or something in my configuration? Note: I created the LocalDB straight from Visual Studio 2012. |
|
|
Ive just tried a quick scenario here, can you let me know if you think I am missing anything as I am not seeing this behaviour.
On your model surface are your entities showing as "Entity[Guid]" or "Entity[int]"? The behaviour you are describing both from the designer and the runtime would indicate that the entity is using an Int32 identity rather than a Guid.
|
|
|
Hi Jeremy, Most definitely Entity<Guid>. It was the first thing I checked when the error came up, as I thought I had made a mistake somewhere :) Looking through the SQL changelog for the database creation, the PKs were created properly as an UNIQUEIDENTIFIER column and the generated entity model classes also defined the Ids as Entity<System.Guid>. I also tried changing the DatabaseProvider back to SQLServer2008 to no effect. If you can provide me with your email address, I'll send you more info (screenshots, entity classes, SQL changelog etc.). Cheers, Herdy. |
|
|
Hi Herdy, If you can send a copy of the model files (.lsmodel/.cs) through to support at mindscape.co.nz that would be much appreciated and Ill see if that yields any new insight.
|
|