草庐IT

CustomerDetail

全部标签

c# - 无法确定类型之间关联的主体端

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