Base solution for your next web application
Open Closed

How to extend users? #5791


User avatar
0
luqc1985 created

Hello,

I need to divide users into employees and customers. Employees and customers need to expand some attributes. How should my entity be defined? Can you share your experience in this area?

Thanks in advance.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    You can check https://aspnetzero.com/Documents/Extending-Existing-Entities

  • User Avatar
    0
    luqc1985 created

    @ismcagdas Thanks, But the way you said this is to directly extend the properties. I want to get two tables for employees and customers. The basic data uses user data, and the newly added two tables store the extended attributes.

  • User Avatar
    1
    aaron created
    Support Team

    Related: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3033