I\'m having issues getting an optional one-to-many relationship to work.
My model is:
public class Person { public int Identifier { get; set; }
You can try this:
this.HasOptional(s => s.Department) .WithMany(s => s.Members) .HasForeignKey(s => s.MemberOfDepartment);