Home > Net >  EF many-to-many DBFirst way how to conduct joint primary key LianZha
EF many-to-many DBFirst way how to conduct joint primary key LianZha

Time:10-30



Database design is a many-to-many relationship, three tables, but have not set the primary key table in the middle, no extra fields, only the combination of two table primary key, this way, the entity data model generated DbFirst will ignore the middle table automatically, and directly in a many-to-many relationship between the other two tables, this way if you need to joint query three tables of data, EF how should check?
  • Related