I need to configure multiple foreign key 1:1 relationships in single entity, I have gone through so many posts, Please check below code for your reference. Please help me to configure the same in entity framework.
public class Institution
{
public Institution()
{
InstitutionId = Guid.NewGuid().ToString("N");
}
public string InstitutionId { get; set; }
public string InstutionName { get; set; }
public string BackgroundImage { get; set; }
public string InstitutionCode { get; set; }
public int Logo { get; set; }
public string AddressId { get; set; }
[ForeignKey("AddressId")]
public virtual Address Address { get; set; }
public string ServerId { get; set; }
[ForeignKey("ServerId")]
public virtual Server InstitutionServer { get; set; }
}
Thanks in advance,