In Entity Framework Core 1.0 RC2 (former Entity Framework 7 RC2), by default, all integer primary key are auto increment field. I tried everything to remove
In EF Core, key and property are configured separately.
To specify the key:
modelBuilder.Entity<tblProduct>().HasKey(t => t.ProdId);
To configure the property not being auto increment:
modelBuilder.Entity<tblProduct>().Property(t => t.ProdId).ValueGeneratedNever();
I did not work with EF 7 but few points to check