In Fluent Api at EF Core 2.0.0, there aren't any methods HasRequired and HasOptional, and i have tow Models, Person and Employee:
public class Person
{
public int Id { get; set; }
public int EmployeeId { get; set; }
public virtual Employee Employee { get; set; } // Optional
}
public class Employee
{
public int Id { get; set; }
public int PersonId { get; set; }
public virtual Person Person {get; set; } // Required
}
PersonMay to have Employee:OptionalEmployeeShould have Person:Required
How to apply these convetions in database.