diff --git a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md index 3a9c9dce8b..abe1143ac6 100644 --- a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md +++ b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/Post.md @@ -208,6 +208,12 @@ user.AddOrUpdateProperty( The `UI.Lookup.Url` option takes a URL to get the list of departments to select on the edit/create forms. This endpoint can be a typical controller, an auto API controller or any type of endpoint that returns a proper JSON response. +To localize, open the `IdentityRelationship.Domain.Shared` project and add it to your `/Localization/IdentityRelationship/en.json` file: + +```json +"DepartmentId": "Department" +``` + Create a `Departments` folder in the `IdentityRelationship.Application.Contracts` project of your solution and add the `DepartmentDto` class in it ```csharp @@ -295,9 +301,9 @@ And it shows the department name on the data table: ![users-page-department-image](images/users-page-department.png) ## Conclusion -In this article I talked about the IdentityUser's relationships. Thank you for reading the article, I hope it was useful. See you soon! +In this article I talked about the use of the IdentityUser relationship and how to extend it. Thank you for reading the article, I hope it was useful. See you soon! ## References - https://docs.abp.io/en/abp/latest/Module-Entity-Extensions - https://learn.microsoft.com/en-us/ef/core/modeling/relationships -- https://community.abp.io/posts/how-to-add-custom-properties-to-the-user-entity-rixchoha +- https://community.abp.io/posts/how-to-add-custom-properties-to-the-user-entity-rixchoha \ No newline at end of file diff --git a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/user-department.png b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/user-department.png index 2d0a0d4416..feb97234c3 100644 Binary files a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/user-department.png and b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/user-department.png differ diff --git a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/users-page-department.png b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/users-page-department.png index 4ec8ef7d54..c923c9fc4b 100644 Binary files a/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/users-page-department.png and b/docs/en/Community-Articles/2023-03-20- IdentityUser-Relationships/images/users-page-department.png differ