From 50a32f0cb8f8168528644dbd4daf5529da9e961c Mon Sep 17 00:00:00 2001 From: ajcvickers Date: Thu, 24 Jul 2014 14:15:02 -0700 Subject: [PATCH] Reacting to ModelBuilder API change --- .../InMemoryContext.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/InMemoryContext.cs b/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/InMemoryContext.cs index ecaecafc5f..d78ec85048 100644 --- a/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/InMemoryContext.cs +++ b/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/InMemoryContext.cs @@ -47,10 +47,12 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test protected override void OnModelCreating(ModelBuilder builder) { - builder.Entity() - .Key(u => u.Id) - .Properties(ps => ps.Property(u => u.UserName)) - .ToTable("AspNetUsers"); + builder.Entity(b => + { + b.Key(u => u.Id) + b.Property(u => u.UserName); + b.ToTable("AspNetUsers"); + }); builder.Entity() .Key(r => r.Id)