EntityFramework Core relation to composite key
问题 Consider the following database tables. Unfortunately the tables cannot be altered in any way. Houses has an auto-increment ID field named Id , a string field named Name and an integer field named AreaId . The latter is not a foreign key to the Areas table. Areas has a composite key consisting of AreaId , CountryId and LangId . An Area with the same AreaId can exist but with different CountryId and LangId . E.g.: There can be two rows with the same AreaId but different LangId . NOTE: Why does