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
I recommend to read Microsoft guide for use Relationships, Navigation Properties and Foreign Keys in EF Code First, like this picture.
Guide link below:
https://docs.microsoft.com/en-gb/ef/ef6/fundamentals/relationships?redirectedfrom=MSDN