lundi 11 février 2019

Entity Framework Code First : How to fix error with seft reference foreign key in SQL using Annotations

I have trouble with the database, I use the table t_CTDaotao sc_HeNganh table, the problem here is that the self-referencing keys t_CTDaotao1 can only refer to sc_HeNganh1, and the keys t_CTDaotao2 cannot reference sc_HeNganh2, more correctly it only Reference is 1 key, not multiple keys

enter image description here

enter image description here enter image description here

Aucun commentaire:

Enregistrer un commentaire