naem name

naem name

  • NA
  • 59
  • 6.8k

Linking records to database based on ID

Feb 2 2017 3:57 AM
Hi all,
 
I am working on a project using winforms in c#.
The problem is that, I want to have a PersonID.
I want to enter details (such as name, age profession et..) to the database, but I want those information to be linked to the PersonID in case I want to change any of the records that belogns to PersonID.
For example I want to save address that is linked to Person ID.
Then if I want to changed the address of that Person, I should be able to change the address by just typing PersonID of that person.
I need someone to tell me please how best I can do it. Shall I write classes? Please advise me on how best I have to do it. 
I hope I am clear.
Thanks in advance.
 
Regards 

Answers (5)