dimanche 3 juillet 2016

how to assign and set foreign keys from primary key in MVC5


i have two tables tbl_Dues and tbl_Violator. tbl_violator's primary key VID is auto seeded and is treated as a foreign key in tbl_dues I would like to create violator table then in the dues table also create on same index and VID of Violator table must store in VID(foreignkey) of Dues table and when i click create then it must save the record to both tbl_Dues and tbl_Violator

Here is my model i want both VID in tbl_Dues and tbl_Violator to be the same:

[![enter image description here][1]][1]


Aucun commentaire:

Enregistrer un commentaire