I\'m trying to create a simple entity framework code first application. I have these classes:
public class User { public int UserId { get; set; } pu
You will need a mapping rule like this:
modelBuilder .Entity() .HasOptional(u => u.ActivationTicket) .WithOptionalPrincipal();
This will give you an ActivationTickets table with a UserId that is nullable.