这个问题在这里已经有了答案:Whatdoesprincipalendofanassociationmeansin1:1relationshipinEntityframework(3个答案)关闭9年前。我收到这个错误:UnabletodeterminetheprincipalendofanassociationbetweenthetypesCustomerDetailandCustomer.这是我的Customer和CustomerDetail模型[Table("CUSTOMER")]publicclassCustomer{[Required][Column("CUSTOMER_ID")