ADO.Net Data Services - Not refreshing Primary Key

2 posts, 0 answers
  1. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 02 Nov 2009 Link to this post

    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
  2. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 02 Nov 2009 Link to this post

    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!
  3. DevCraft banner
Back to Top