I found that the Tieson T comment is the correct answer, but it was sent as a comment and not an answer, so I will reproduce my specific solution here. In my class ApplicationUser(implements IdentityUser) I have overridden the property Idand added the System.ComponentModel.DataAnnotations.KeyAttributeand attributes System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOptionAttribute. My ApplicationUser class is as follows:
public class ApplicationUser : IdentityUser<Guid, CustomUserLogin, CustomUserRole, CustomUserClaim>
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public override Guid Id
{
get { return base.Id; }
set { base.Id = value; }
}
...
}