Page 1 of 1

Sequence contains more than one element @ SubmitChanges()

Posted: Sun 23 Oct 2011 17:11
by Breno999
Hi!

I´m getting above error when doing this little routine:

using ( SlabYardContext objDB = new SlabYardContext() )
{
clsSlab objSlab = new clsSlab();
objSlab.ID_Slab_Identifier = numSlabIdentifier;
objDB.clsSlabs.Attach( objSlab );

objSlab.ID_Pile = numPileID;

objDB.SubmitChanges();
}

I double checked Auto-sync to always only on PK.
I double checked Update Check to never on all other columns.
ID_Slab_Identifier is PK and by no means could be doubled.

Has anyone got through this problem before?

Any help would be appreciated!

Posted: Mon 24 Oct 2011 16:08
by StanislavK
Could you please specify the following:
- the DBMS you are working with (e.g., Oracle or SQL Server);
- the definition of the table the 'clsSlab' class corresponds to;
- the stack trace of the exception you are getting;
- the exact version of LinqConnect you are working with.

At the moment, we couldn't reproduce this issue in our environment.