I want to create a nullable foreign key with type GUID
like this
[ForeignKey("CreatedBy")]
[Display(Name = "Created by")]
public Guid? CreatedById { get; set; }
public virtual User CreatedBy { get; set; }
But when I add migration and update the database it doesn't make it allow null in table design in SQL.
Is there another way to make it allow null through model first ?