14
bu hatayı alıyorum
: Buradatipleri arasında bir derneğin asıl sonunu belirlenemedi
Unable to determine the principal end of an association between the types CustomerDetail and Customer.
benim Customer
ve CustomerDetail
modelleri
CustomerDetail
için
[Table("CUSTOMER")]
public class Customer
{
[Required]
[Column("CUSTOMER_ID")]
public int Id {get; set;}
[Column("FIRST_NAME")]
public string FirstName {get; set;}
// other fields
public virtual CustomerDetail customerDetail {get; set;}
}
[Table("CUSTOMER_DETAIL")]
public class CustomerDetail
{
[Required]
[Column("CUSTOMER_DETAIL_ID")]
public int Id {get; set;}
// other fields
public virtual Customer Customer {get; set;}
}
Customer
1 sahiptir: 1 ilişki.