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
|
Whats the deal with the HiLo Table when using GUIDS. I kinda assumed it wouldn't be needed but it complained about invalid object when i added a new object (See dump HiLo) so i ran the script you had there (which to be fair is prolly only going to help for ints) and it now throws an invalid cast (cos it's getting in int from HiLo right!) but I guess i need to tell it not to do that, beyond the class definition public class User : Entity<Guid> .... Invalid object Exception at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) O BTW it does seem to leave the database in a rather nasty state around this time i figures its leaving an open transaction. O BTW BTW it was very easy to get to this point and all your assumptions look sound (in relation to conventions etc) . Looks good gents (although it appears integers for id's may be the way to go)
|
|
|
Mostly cos i need the friends - it works fine with ints - although it does seem to be holding the database open so i guess there is an 'off' button i couldn't see. On the plus side it only took a few minutes to change over the primary key and most of that was scripting the database so thats v cool. |
|
|
Database is definitely my fault :S |
|
|
Hey Splinter, Although it is likely not documented yet, you need to set the IdentityMethod on LightSpeedContext to LightSpeedContext.Guid Cheers, Andrew.
|
|