I have a User < Country model. A user belongs to a country, but may not belong to any (null foreign key).
User
Country
How do I set this up? When I t
You must make your foreign key nullable:
public class User { public int Id { get; set; } public int? CountryId { get; set; } public virtual Country Country { get; set; } }