Creating entity relationship with renamed fields and non-primary key in primary table
问题 The following are two partial tables in which I am trying to define a foreign key relationship. public class Form { [Key, Column("FormID")] public System.Guid FormGUID { get; set; } [Column("PatGUID")] public Nullable<System.Guid> PatientGUID { get; set; } } public class Patient { [Column("PatGUID")] public System.Guid PatientGUID { get; set; } [Key, Column("PatID")] public int PatientID { get; set; } } I've eliminated all but the relevant information, fields, navigations, etc. for this