Andrew White
Andrew White
Thanks. I don’t see any issues with this code. Where exactly in your app is `AddLoginAsync ` getting called?
Is your identity repository registered in DI? What is the lifetime? The user manager internally will have a user store which internally uses your dbcontext which was instantiated for the...
hi @ekallaur that is a good approach. In the right settings the regular user store should work though. Another option is to set [`TenantNotSet` mode to overwrite](https://www.finbuckle.com/MultiTenant/Docs/v9.1.3/EFCore#tenant-not-set-mode) in which case...
Yeah you are right. I’m looking further into this.
Ok after digging in I have come to the conclusion that adding the PK to that table is more trouble than it is worth. I’ll put out a new release...
@ekallaur that could be an issue but I examined the `UserStore` class carefully and I believe everywhere where it tries to query there is an implicit "where tenantId = _tenantid_"...
This fix was just released, hope this lets you move on to 9.x
In v10 this should be resolved via the `EnforceMultiTenantTracking` method that can be called in the db context constructor.
Hi, thank you for providing god details. If users are one-to-many with a tenant then in most cases effectively it is many-to-many because of course a tenant can have multiple...
They haven’t been updated to .net 8 or .net 9 yet. The older ones are in the repo if you look at an earlier version tag of the code. I...