I would like to configure EFCore that A property of class B would be loaded based on property AAlternateId and AAlteranateId should be foreign key of table A of column AlternateId. How would I configure that using fluent api?
class A {
public Guid Id { get; set; }
public Guid AlternateId { get; set; }
}
class B {
public Guid Id { get; set; }
public AAlternateId { get; set; }
public A A { get; set; }
}