In Fluent Api at EF Core 2.0.0, there aren\'t any methods HasRequired and HasOptional, and i have tow Models, Person and
HasRequired
HasOptional
You could just specify int? as EmployeeId property type.
BTW, no need to make navigation properties virtual.