React to EF API change

This commit is contained in:
Arthur Vickers 2015-07-20 11:13:09 -07:00
parent 54db5d2c50
commit 8299bbf482
1 changed files with 3 additions and 3 deletions

View File

@ -29,8 +29,8 @@ namespace Microsoft.AspNet.Identity.EntityFramework
builder.Entity<TUser>(b =>
{
b.Key(u => u.Id);
b.Index(u => u.NormalizedUserName).IndexName("UserNameIndex");
b.Index(u => u.NormalizedEmail).IndexName("EmailIndex");
b.Index(u => u.NormalizedUserName).Name("UserNameIndex");
b.Index(u => u.NormalizedEmail).Name("EmailIndex");
b.ToTable("AspNetUsers");
b.Property(u => u.ConcurrencyStamp).ConcurrencyToken();
@ -46,7 +46,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework
builder.Entity<TRole>(b =>
{
b.Key(r => r.Id);
b.Index(r => r.NormalizedName).IndexName("RoleNameIndex");
b.Index(r => r.NormalizedName).Name("RoleNameIndex");
b.ToTable("AspNetRoles");
b.Property(r => r.ConcurrencyStamp).ConcurrencyToken();