Open Closed

Unable To Navigate Tenant User in CRUD Page #7168


User avatar
0
i.ullah@fandaqah.com created

Unable to add tenant username in CRUD page using Navigation property. Kindly guide using abp suite to navigate tenant username in CRUD page. Thanks

Check the docs before asking a question: https://community.abp.io/posts/abp-suite-how-to-add-the-user-entity-as-a-navigation-property-of-another-entity-furp75ex

  • ABP Framework version: v8.0.5
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

26 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can check the document: https://docs.abp.io/en/commercial/latest/abp-suite/generating-crud-page#navigation-properties

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Hi,

    You can check the document: https://docs.abp.io/en/commercial/latest/abp-suite/generating-crud-page#navigation-properties

    Get identity users as navigation property, After adding reference regarding volo.identity.xxx in custom module error occur on compile time

    The type or namespace name 'Identity' does not exist in the namespace 'Volo.Abp' (are you missing an assembly reference?) ServiceManagement.Domain (netstandard2.0)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Compile time error shown as Package Volo.Abp.Identity.Domain 8.0.5 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0).

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    How to add volo.identity.XXX as reference in custom module netstandard 2.0 dependencies. We are not going to remove this dependencies because it may use for different packages and project. Kindly guide in this regards. Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    How to add volo.identity.XXX as reference in custom module netstandard 2.0 dependencies. We are not going to remove this dependencies because it may use for different packages and project. Kindly guide in this regards. Thanks

    Hi, you can change the project target to 8.0

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    How to add volo.identity.XXX as reference in custom module netstandard 2.0 dependencies. We are not going to remove this dependencies because it may use for different packages and project. Kindly guide in this regards. Thanks

    Hi, you can change the project target to 8.0

    after updating project target following issues occur.. what to do now its urgent

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    You can change them all to 8.0, ABP has already done this https://github.com/abpframework/abp/commit/2a10ef1a4a0dd8ebf3bdd62b52502e281114bfcc

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    You can change them all to 8.0, ABP has already done this https://github.com/abpframework/abp/commit/2a10ef1a4a0dd8ebf3bdd62b52502e281114bfcc

    Issue resolved regarding the reference but when adding IdentityUser as a navigation property exception through which has been following:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    When ever try to open custom module below error occurs. Permission has been granted to the user role.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Could you share a simple project with me? I will check it. shiwei.liang@volosoft.com

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Could you share a simple project with me? I will check it. shiwei.liang@volosoft.com

    how to share sample project. ? Steps which has been follow to create: -Add custom module -Create a CRUD page with navigation property which is system identity user in the custom module from abp suite. -after that provide permission and execute flow.

    These are the steps which has been taken to create custom module. Following the below link to add identity user. Add volo.identity.XXX as a project in related custom module libraries.

    https://alexbierhaus.medium.com/abp-io-navigation-property-for-identityuser-abpuser-218b15aa711c

    Note: This above link is working fine when we create a simple CRUD page other than a custom module.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    how to share sample project.

    You can share the simple project via email.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    how to share sample project.

    You can share the simple project via email.

    project is too large in size unable to upload

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    You can upload to https://wetransfer.com/ and share the link via email.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    You can upload to https://wetransfer.com/ and share the link via email.

    unable to share. limit is upto 2 GB which is not enough for sample project.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    You can upload to https://wetransfer.com/ and share the link via email.

    https://we.tl/t-....

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I looked at your project, and you want to add the IdentityUser navigation property, but your database context doesn't have an IdentityUser table.

    You can refer to the standard application template configuration

    You also need to add module dependencies to all module classes. (EntityframeworkModule, DomainModule, ApplicationModule etc....) For example:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    I looked at your project, and you want to add the IdentityUser navigation property, but your database context doesn't have an IdentityUser table.

    You can refer to the standard application template configuration

    You also need to add module dependencies to all module classes. (EntityframeworkModule, DomainModule, ApplicationModule etc....) For example:

    these reference will be added in main project classes or module class

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    It should be IIdentityProDbContext

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    Hi,

    It should be IIdentityProDbContext

    changes will be made on the module DBContext class or in the main DBContext class ?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    If the entity adds the identityUser navigation property, then need to change

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    i.ullah@fandaqah.com created

    If the entity adds the identityUser navigation property, then need to change

    Which one need to change this one Or this one

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.