Closed wagich closed 3 years ago
Hey @wagich - is this unrelated to your previous PR #39 ?
@JudahGabriel It fixes another bug that I found regarding role usage, but it is not strictly related since this concerns the role class itself…
I was thinking it would be better to be very granular with the fixes, so I separated it. If you prefer, I can roll it into the other one.
I've deployed your fix to RavenDB.Identity 8.0.7. 👍
This PR adds private setters to the
Users
andClaims
properties onIdentityRole
.Without these setters RavenDb can't deserialize the role correctly, leaving both the users and claims collections empty. This change then gets picked up by change tracking and on the next (maybe unrelated) call to
SaveChanges
the info in the DB gets wiped out.