React to EF fluent API changes

This commit is contained in:
Arthur Vickers 2015-09-24 10:44:30 -07:00
parent 8d6bacb44d
commit c4097f8080
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace MusicStore.Models
protected override void OnModelCreating(ModelBuilder builder)
{
builder.Entity<CartItem>().Key(b => b.CartItemId);
builder.Entity<CartItem>().HasKey(b => b.CartItemId);
// TODO: Remove when explicit values insertion removed.
builder.Entity<Artist>().Property(a => a.ArtistId).ValueGeneratedNever();