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
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