Starts in:
2 DAYS
1 HR
20 MIN
21 SEC
Starts in:
2 D
1 H
20 M
21 S
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:

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

    Hi,

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

  • 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)

  • 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).

  • 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

  • User Avatar
    0
    i.ullah@fandaqah.com created

  • User Avatar
    0
    liangshiwei created
    Support Team 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

  • 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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

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

  • 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:

  • User Avatar
    0
    i.ullah@fandaqah.com created

  • 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.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

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

  • 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.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    how to share sample project.

    You can share the simple project via email.

  • 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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

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

  • 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.

  • 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-....

  • User Avatar
    0
    liangshiwei created
    Support Team 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:

  • 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

  • User Avatar
    0
    i.ullah@fandaqah.com created

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It should be IIdentityProDbContext

  • 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 ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

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

  • 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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06