A user can have 1 or 0 account
public class User { public int UserId { get; set; } public string Name { get; set; } public string
Pretty much the same, with other names.
modelBuilder.Entity() .HasOne(s => s.Account) .WithOne(ad => ad.User) .IsRequired(false);