Solution 1:

An optional Foreign Key with a value type property must be nullable. eg

public Guid? CustomerId { get; set; }