Sequence contains more than one element @ SubmitChanges()

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Breno999
Posts: 2
Joined: Sun 23 Oct 2011 17:04
Location: Brasil

Sequence contains more than one element @ SubmitChanges()

Post by Breno999 » Sun 23 Oct 2011 17:11

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!

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Mon 24 Oct 2011 16:08

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.

Post Reply