This is a migrated thread and some comments may be shown as answers.

m:n relation update problem

1 Answer 30 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fabio Renggli
Top achievements
Rank 1
Fabio Renggli asked on 04 Jan 2011, 04:04 PM
Hi together

I have the following m:n relation. Instrument -> InstrumentID. It is implemented with a join table. The problem is now, that when i want to add an existing InstrumentID to two new Instrument at the same time i get a OptimisticverificationException, because openaccess always updates the existing InstrumentID even has the same value. (voa_version is increased). The only thing openaccess should do is to create a new entry in the join table. Can anyone tell me why this is happening, and how it could be solved?

Thanks and regards

Fabio Renggli

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 04 Jan 2011, 05:10 PM
Hello Fabio Renggli,
Do you need the version field? If you set the concurrency mode to 'changed' it should work.

Kind regards,
Jan Blessenohl
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Development (API, general questions)
Asked by
Fabio Renggli
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or