Handling Insert of Primary Keys

Scenario Determing a Primary Key rows inserted into the disconnected DataSet

Issue Primary key must be unique across consumers in order to merge back to the database

Solution Use a GUID as a Primary Key

1.Can be generated on the client
2.Guaranteed to be unique
3.Doesnot change when updated to the server

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish