React to EF API changes

This commit is contained in:
ajcvickers 2014-12-02 14:26:09 -08:00
parent 2801adb044
commit 4030d77b31
2 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework
{
throw new ArgumentNullException("role");
}
await Context.UpdateAsync(role, cancellationToken);
Context.Update(role);
await SaveChanges(cancellationToken);
}
@ -96,7 +96,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework
{
throw new ArgumentNullException("role");
}
Context.Delete(role);
Context.Remove(role);
await SaveChanges(cancellationToken);
}

View File

@ -157,7 +157,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework
{
throw new ArgumentNullException("user");
}
await Context.UpdateAsync(user, cancellationToken);
Context.Update(user);
await SaveChanges(cancellationToken);
}
@ -169,7 +169,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework
{
throw new ArgumentNullException("user");
}
Context.Delete(user);
Context.Remove(user);
await SaveChanges(cancellationToken);
}