auto generating a primary key in a c# app

fguihen

Well-known member
Joined
Nov 10, 2003
Messages
248
Location
Eire
when a user wants to add a new patient to the database, i want to autogenerate a primary key to identify the patient. how do i autogenerate this in c#, so that i know it wont clash with any records already in the database?
 
Back
Top