I got a problem while configuring a one-to-many relationship in .NET EF Core. This is the parent class Coaches: public class Coaches { public Guid CoachId { get; set; } public virtual ICollection<License> License { get; set; }
public Coaches() { License = new HashSet<License>(); }
}
This is the second class License: public class License {
public Guid LicenseId { get; set; } public Guid CoachId { get; set; } public virtual Coaches Coach { get; set; } }