I have been creating C# project for Hospital Management in which I have considered some basic text values like Patient name, PatientID, Gender etc., plus some buttons for functioning saving etc. I have used SqlClient to store the values. I just wanted to know how to set the PatientID so that PatientID automatically increases by 1 everytime I enter a new record. The PatientID text has to be disabled for user and needs to be automatically incremented for every new record on its own.
Can anyone please help? Thanks in advance :)