Activities of "liangshiwei"

Hi,

I can't reproduce the problem, could you share a project that can reproduce it with me? thanks. shiwei.liang@volosoft.com

Can you try to use CLI create a new project and deploy it to a new server(or virtual machine) to test again?

Hi,

Because you are using the tiered architecture, you need to put the CustomApplicationConfigurationAppService in the .HttpApi project.

Hi,

We have multiple methods to determine the current tenant: https://docs.abp.io/en/abp/latest/Multi-Tenancy#tenant-resolvers

The most common way you can add the tenant to the request header:

Hi,

Can you share the full steps to reproduce and I will check it out, thanks.

Hi,

The ABP studio is our new product and it is still under development.

We will introduce it when it's done

Hi,

I can reproduce the problem, can you create a new project to reproduce and send it to me by email? shiwei.liang@volosoft.com Thanks.

In this way, your service will use the same database as the identity service.

In microservices, this is not good, but it's up to you.

This is another way, you can have redundant users in the service as we did: https://github.com/abpframework/abp/blob/dev/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Users/CmsUser.cs https://github.com/abpframework/abp/blob/dev/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Users/CmsUserSynchronizer.cs

The nice thing about it is that you don't have to depend on the identity module

Hi,

You can try this:

  • Add Volo.Abp.Identity.Pro.Domain to your Domain project
  • Add Volo.Abp.Identity.Pro.EntityFrameworkCore to your EntityFrameworkCore project
  • Add module dependencies to your module

Domain

public class AgencyUser : FullAuditedAggregateRoot<Guid>
{
    public Guid IdentityUserId { get; set; }
    public IdentityUser IdentityUser { get; set; }

    public Guid AgencyId { get; set; }
    public Agency Agency { get; set; }
}
 
public class Agency : Entity<Guid>
{
    public string Name { get; set; }
}

EntityFrameworkCore

public class AgencyUserMap : IEntityTypeConfiguration<AgencyUser>
{
    public void Configure(EntityTypeBuilder<AgencyUser> builder)
    {
        builder.ConfigureByConvention();

        builder.ToTable("AgencyUser");

        builder.HasKey(x => x.Id);

        builder.Property(x => x.Id).ValueGeneratedOnAdd();

        builder.HasOne<IdentityUser>().WithMany().HasForeignKey(x => x.IdentityUserId);
        builder.HasOne<Agency>().WithMany().HasForeignKey(x => x.AgencyId);

        builder.Navigation(x => x.IdentityUser).AutoInclude();
        builder.Navigation(x => x.Agency).AutoInclude();
        builder.ApplyObjectExtensionMappings();
    }
}
builder.ApplyConfiguration(new AgencyUserMap());

builder.Entity<Agency>(b =>
{
    b.ToTable("Agency");
    b.ApplyObjectExtensionMappings();
});
[ReplaceDbContext(typeof(IIdentityProDbContext))]
[ConnectionStringName(MyServiceDbProperties.ConnectionStringName)]
public class MyServiceDbContext : AbpDbContext<MyServiceDbContext> ,  IIdentityProDbContext
{
    // Identity
    public DbSet<IdentityUser> Users { get; set; }
    public DbSet<IdentityRole> Roles { get; set; }
    public DbSet<IdentityClaimType> ClaimTypes { get; set; }
    public DbSet<OrganizationUnit> OrganizationUnits { get; set; }
    public DbSet<IdentitySecurityLog> SecurityLogs { get; set; }
    public DbSet<IdentityLinkUser> LinkUsers { get; set; }
    
    
    public DbSet<AgencyUser> AgencyUsers { get; set; }
    public DbSet<Agency> Agencies { get; set; }

    public MyServiceDbContext(DbContextOptions<MyServiceDbContext> options)
        : base(options)
    {

    }

    protected override void OnModelCreating(ModelBuilder builder)
    {
        base.OnModelCreating(builder);

        builder.ConfigureIdentityPro();
        builder.ConfigureMyService();
    }
}

Hi,

Add reference to package: Volo.Abp.IdentityServer.Domain to EntityFrameworkCore and Domain projects

I remember that ABP app pro startup template already preinstalled those modules, are you using a module template?

Showing 4701 to 4710 of 6693 entries
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.1.0-preview. Updated on November 07, 2025, 08:20