hi
We need the entity tracking feature when we update an entity. see https://learn.microsoft.com/en-us/ef/core/change-tracking/
You can try to disable it in MyEfCoreIdentityUserRepository.cs when querying entities.
The solution is:
So you can either prevent assigning too many organzation to a user or modify the Identity module code to avoid loading all navigation entities explicitly. Then, query all entities at once as needed and tell EF Core not to track them.
https://abp.io/docs/latest/framework/architecture/domain-driven-design/repositories#read-only-repositories https://abp.io/docs/latest/framework/architecture/domain-driven-design/repositories#read-only-repositories-behavior-in-entity-framework-core
hi
Could you please share the steps to reproduce the issue in a new template project?
Thanks.
hi
The shared file and screenshot contain client-identifying information (namespaces in code, name in screenshot) and I ask you to please edit your post and remove those.
Removed.
Can you help me understand why this edit is necessary? Since this is an override, I would expect the base class to already handle this.
Because you use the new keyword to override thePostInput, the base class can't access your new variable.
Thanks.
hi
This seems unavoidable because the current user has thousands of organizations, and EF Core's entity tracking needs to load and track all entities, which is why it's slow.
For example, if you have 5,000 roles or logins in the future, you will still encounter this problem.
So you can either prevent assigning too many organzation to a user or modify the Identity module code to avoid loading all navigation entities explicitly. Then, query all entities at once as needed and tell EF Core not to track them.
https://abp.io/docs/latest/framework/architecture/domain-driven-design/repositories#read-only-repositories https://abp.io/docs/latest/framework/architecture/domain-driven-design/repositories#read-only-repositories-behavior-in-entity-framework-core
Thanks.
hi
When I try to build/run my solution, I encounter license validation errors.
Was this project created recently?
Can you check the appsettings.secret.json file under the project?
It should contain the AbpLicenseCode.
Can you try to create a new project and copy the AbpLicenseCode from the new project to your old project?
Can you also run the new project to test if the license check works?
Thanks.
hi
but we are still trying to add OrganizationUnits to cliamns issue still persists. I
Can you add the code to https://github.com/Exceego-Info-Labs-Pvt-Ltd/POC project? So I can reproduce it.
Thanks.