diff --git a/src/Microsoft.AspNet.Identity.AspNetCoreCompat/IdentityDbContext.cs b/src/Microsoft.AspNet.Identity.AspNetCoreCompat/IdentityDbContext.cs index 8cee968e94..e773e39574 100644 --- a/src/Microsoft.AspNet.Identity.AspNetCoreCompat/IdentityDbContext.cs +++ b/src/Microsoft.AspNet.Identity.AspNetCoreCompat/IdentityDbContext.cs @@ -126,11 +126,11 @@ namespace Microsoft.AspNet.Identity.CoreCompat { if (entityEntry.Entity is TUser && entityEntry.State == EntityState.Modified) { - entityEntry.Property("ConcurrencyStamp").CurrentValue = Guid.NewGuid().ToString(); + entityEntry.Cast().Property(p => p.ConcurrencyStamp).CurrentValue = Guid.NewGuid().ToString(); } else if (entityEntry.Entity is TRole && entityEntry.State == EntityState.Modified) { - entityEntry.Property("ConcurrencyStamp").CurrentValue = Guid.NewGuid().ToString(); + entityEntry.Cast().Property(p => p.ConcurrencyStamp).CurrentValue = Guid.NewGuid().ToString(); } return base.ValidateEntity(entityEntry, items); }