Quantcast
Viewing latest article 23
Browse Latest Browse All 108

Error in relationship between two models have more keys in asp.net core 2.1

Problem

The relationship from 'SalesFooter.SaleHeaders' to 'SalesHeader.SalesFooters'

with foreign key properties {'SalesOrderNo' : int} cannot target the primary key

{'SalesOrderNo' : int, 'SalesType' : int, 'SalesYear' : int, 'BranchCode' :

int} because it is not compatible. Configure a principal key or a set of

compatible foreign key properties for this relationship.

Details

I work in visual studio 2017 asp.net EntityFramework core 2.1 when i make

relationship...

Error in relationship between two models have more keys in asp.net core 2.1

Viewing latest article 23
Browse Latest Browse All 108

Trending Articles