Base solution for your next web application
Open Closed

Insert new user information into database #6953


User avatar
0
palco.ps created

How can i insert new user information into AbpUser table in the Database, using input texts in "Create new user" Form ??


7 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Read the documentation on Extending Existing entities. https://docs.aspnetzero.com/documents/aspnet-core-angular/latest/Extending-Existing-Entities

  • User Avatar
    0
    palco.ps created

    i did, but the step in the pic , i can't find ".Web\App\common\views\users\index.js" file :\

  • User Avatar
    0
    aaron created
    Support Team
    • What is your product type (Angular or MVC)?
    • What is product framework type (.net framework or .net core)?

    Related: https://support.aspnetzero.com/QA/Questions/6848

  • User Avatar
    0
    palco.ps created
    • angular & .net framework
    • and it still didn't find the file
  • User Avatar
    0
    aaron created
    Support Team

    ASP<span></span>.NET Core or MVC 5?

  • User Avatar
    0
    palco.ps created

    -ASP.NET Core

  • User Avatar
    0
    aaron created
    Support Team

    The UI part of that document was written for ASP<span></span>.NET MVC 5.x and AngularJS.

    For ASP<span></span>.NET Core and Angular, it is angular/src/app/admin/users/users.component.html.

      <th style="width: 150px" pSortableColumn="surname">
          {{'Surname' | localize}}
          <p-sortIcon field="surname"></p-sortIcon>
      </th>
    + <th style="width: 150px">
    +     {{'Address' | localize}}
    + </th>
      <th style="width: 150px">
          {{'Roles' | localize}}
      </th>
    
      <td style="width: 150px">
          <span class="ui-column-title"> {{'Surname' | localize}}</span>
          {{record.surname}}
      </td>
    + <td style="width: 150px">
    +     <span class="ui-column-title"> {{'Address' | localize}}</span>
    +     {{record.address}}
    + </td>
      <td style="width: 150px">
          <span class="ui-column-title"> {{'Roles' | localize}}</span>
          {{getRolesAsString(record.roles)}}
      </td>