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
|
Using LightSpeed 5.0.2276.0. When calling UnitOfWork.SaveChanges(), prior to any other query, against a LightSpeedContext with EnableCandidateFixes enabled, an ArgumentOutOfRangeException is thrown. If you look at this snippet from Mindscape.LightSpeed.UnitOfWork.SaveChanges() you can see the do while loop will throw if the entities List is empty, which seems to be the case if no queries have been made in the UOW (or entities attached) prior to calling SaveChanges().
The attached console app reproduces the issue. Thanks, Stephen |
|
|
Thanks Stephen, Ive added a fix for this and this will be available in the next nightly build.
|
|