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

ADO.Net Data Services - Not refreshing Primary Key

1 Answer 69 Views
Integration with other products
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 2
Robert asked on 02 Nov 2009, 10:16 PM
Hi There,

I am using ADO.Net data services with OpenAccess ORM.  I've used the wizard to generate my data context.  When inserting entities from the client I can see the row inserted in the database but my entities auto-inc integer primary key is not updated in the client instance after the save is complete.  Any ideas why this might happen?

Thanks,
Rob

1 Answer, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 2
answered on 03 Nov 2009, 02:46 AM
Fyi, I found my problem.  Turns out that I wasn't calling context.EndSaveChanges(ar) so updated values weren't being applied to my objects.  Oops!  If anyone else gets this problem, you'll know why!
Tags
Integration with other products
Asked by
Robert
Top achievements
Rank 2
Answers by
Robert
Top achievements
Rank 2
Share this question
or