Yes, you would do this by passing properties to set. For instance:
WebSecurity.CreateUserAndAccount("elena", "password", new { UserId = 1 });
Of course, you need to make sure that the UserId column has not been set as the identifier column, and you will also have to modify the UsersContext schema to add this.
[Table("UserProfile")] public class UserProfile { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public int UserId { get; set; } public string UserName { get; set; } }
source share