Sequence contains more than one element @ SubmitChanges()
Posted: 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!
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!