0
coforgetech created
Information:
- What is your product version? 10.3
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? ASP.Net Code
- Which theme are you using? Default
Question - There are two query regarding user entity as mention below:-
- How to update or delete existing property of user entity? E.g. We want to remove predefined field “Surname” from entity and not to be displayed in UI.
- Can we remove the check box option like in User Create/Edit page. (1) Set Random password (2) Change password on next login. (3) Send Activation Email (4) Active (5) Lockout enabled If we remove checkbox option features is it going to impact another module.
1 Answer(s)
-
0
Hi @coforgetech
- Surname field is defined in the base Entity, see https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/Authorization/Users/AbpUserBase.cs#L120. You can unmap this field in your DbContext's OnModelCreating method but this will not remove it from the Entity.
- If you set default values for those fields, it will not be a problem removing them from the UI. You can set the default values in the related AppService method.