Entity Framework 5 Multiple identity columns specified for table. Only one identity column per table is allowed
问题 I am creating this model as part of my code first entity framework public class NewUserRegistration { [Key] public int NewUserRegistrationId { get; set; } } Using the Update-Database -Verbose -Force command in the Package Manger ConsoleI get this exception during the this bit of the update Applying automatic migration: 201211252223088_AutomaticMigration. ALTER TABLE [dbo].[NewUserRegistration] ADD [NewUserRegistrationId] [int] NOT NULL IDENTITY System.Data.SqlClient.SqlException (0x80131904):