E
E
embiid2020-04-05 13:41:37
Entity Framework
embiid, 2020-04-05 13:41:37

How to make a table relation to another table?

Hello, need help!

It is necessary to build the database "Customs" using the model first principle of EF.
How do I join the CustomerHouse tables with Company and Products.
Simply, I do not understand how to put CustomerHouse - the main table "Customs".
If I did sql, then it would be easy to specify foreign key (company) references to company (id)

So, out of desperation, I thought that the attributes that should be like foreign key should be like pk and there in asssosiations connect their links ...

5e89b5dff3c43296442366.png
5e89b5b20e26c702604684.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question