Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organization units for the Identity module #1666

Closed
hikalkan opened this issue Aug 21, 2019 · 3 comments · Fixed by #2563 or #3732
Closed

Organization units for the Identity module #1666

hikalkan opened this issue Aug 21, 2019 · 3 comments · Fixed by #2563 or #3732

Comments

@hikalkan
Copy link
Member

No description provided.

@leonkosak
Copy link
Contributor

leonkosak commented Aug 21, 2019

Consider using SqlHierarchyId if possible (if it works also on non-MSSQL databases like PostgreSQL - otherwise not).
https://entityframeworkcore.com/en/knowledge-base/50594409/entity-framework-core-hierarchyid

https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.types.sqlhierarchyid?view=sql-smo-140.17283.0
With this type you also get "nice helper" methods like GetRoot(), GetLevel() and others.

The representation oh HierarchyId if you make .ToString() is "similar" what is in current ABP Code: https://aspnetboilerplate.com/Pages/Documents/Zero/Organization-Units#ou-code

Consider also that one entity could be "located" inside multiple "not connected" levels inside hierarchy.

@crashsol
Copy link

In many cases, the organization needs sorting. Can you provide a sorting field to enrich its functions

@maliming
Copy link
Member

hi @crashsol @mperk is implementing this feature, you can discuss related issues in #2563.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants