Reacting to ModelBuilder API change

This commit is contained in:
ajcvickers 2014-07-24 14:15:02 -07:00
parent 07f72c2fb9
commit 50a32f0cb8
1 changed files with 6 additions and 4 deletions

View File

@ -47,10 +47,12 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
protected override void OnModelCreating(ModelBuilder builder)
{
builder.Entity<TUser>()
.Key(u => u.Id)
.Properties(ps => ps.Property(u => u.UserName))
.ToTable("AspNetUsers");
builder.Entity<TUser>(b =>
{
b.Key(u => u.Id)
b.Property(u => u.UserName);
b.ToTable("AspNetUsers");
});
builder.Entity<TRole>()
.Key(r => r.Id)