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
|
Hi there, another day another problem. While inserting an entity with some new associated entities I get a exception: System.Data.SqlClient.SqlException: Der Spaltenname 'LockVersion' wird mehrmals in der Ergebnisspaltenliste angezeigt. "The column LockVersion is used multiply times within the result columns". SQL Trace: INSERT INTO Customer The select statement, which causes the exception, is not displayed. Kind regards, Sörnt |
|
|
Looks like BaseProject has two LockVersions. This could occur if you are using single table inheritance and have defined LockVersion fields (or, in the designer, set Optimistic Concurrency Checking) on both the base and derived classes. Remove the LockVersion field (or set Optimistic Concurrency Checking to false) on the derived class and you should be good to go (the derived class will still get checked because the setting gets inherited from the base class). |
|
|
Hello Ivan, I now set the LockVersion only at the base class and it is working. LigthSpeed is really an impressive product and the support is excellent! Kudos to the LightSpeed team! Sörnt |
|