Activities of "liangshiwei"

  1. As you have asked to add following in BlazorHostModule

You need to install these packages : )

  1. You have asked to create this function below in HostMenuContributor
private void ConfigureMenu(ServiceConfigurationContext context)
{
    Configure<AbpNavigationOptions>(options =>
    {
        options.MenuContributors.Add(new ProductModuleHostMenuContributor(context.Services.GetConfiguration()));
    });
}
  1. When we add dependencies in Identity module , the for following dependencies it throw error

Same with 1

For now, try:

public override void PostConfigureServices(ServiceConfigurationContext context)
{
    Configure<RazorPagesOptions>(options =>
    {
        options.Conventions.RemoveAll(x =>
        {
            if (x == null)
            {
                return false;
            }
            var type = x.GetType();

            if (type.Name != "PageApplicationModelConvention")
            {
                return false;
            }

            return type.GetField("_path", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(x)
                .As<string>() == "/SettingManagement/Index";
        });
    });
}

This is a bug, I will fixed it. by the way, ticket refunded : )

I can't get your point, you want the IssuerUri to change with the tenant, right?

Answer

Please share the error log, thanks.

Hi,

I mean the application error log : ).

Thanks. I will check it out.

HI,

Can you provide steps to reproduce?

Hi,

In appUser case, you need change the YourDbContextModelCreatingExtensions alfter suite added navigation properties.

  1. Remove b.HasOne<AppUser>().WithMany().HasForeignKey(x => x.AppUserId); in YourDbContextModelCreatingExtensions.
  2. Open *MigrationsDbContext, add the following code in the OnModelCreating method:
builder.Entity<MyExistingEntity>(b =>
{
    b.Ignore(x => x.AppUser);
    
    b.HasOne<IdentityUser>().WithMany().HasForeignKey(nameof(MyExistingEntity.AppUserId)).IsRequired(false);
});

builder.Entity<IdentityUser>(b =>
{
    b.Property<Guid?>(nameof(AppUser.MyExistingEntityId));
    b.HasOne<MyExistingEntity>().WithMany().HasForeignKey(nameof(AppUser.MyExistingEntityId));
});
  1. Open *DbContext, add the following code in the OnModelCreating method:
builder.Entity<AppUser>(b =>
{
    b.ToTable(AbpIdentityDbProperties.DbTablePrefix + "Users"); //Sharing the same table "AbpUsers" with the IdentityUser

    b.ConfigureByConvention();
    b.ConfigureAbpUser();

    /* Configure mappings for your additional properties
     * Also see the CustomApplicationModulesEfCoreEntityExtensionMappings class
     */

    b.Property<Guid?>(nameof(AppUser.MyExistingEntityId));
    b.HasOne<MyExistingEntity>().WithMany().HasForeignKey(nameof(AppUser.MyExistingEntityId));
});

/* Configure your own tables/entities inside the ConfigureCustomApplicationModules method */

builder.ConfigureCustomApplicationModules();

builder.Entity<MyExistingEntity>(b =>
{
    //SET RELATIONS FOR THE PROJECT DBCONTEXT

    b.HasOne(x => x.AppUser).WithMany().HasForeignKey(nameof(MyExistingEntity.AppUserId)).IsRequired(false);
});

Re-create migration files.

Could not find file '/Themes/Lepton/Global/Styles/lepton1.css'

Hi, Maybe you can try to add this file to your project manually.

First with unauthorize access (401) to the hangfire UI

Maybe you added some hangfire auth filter, you should check the code.

Showing 5631 to 5640 of 6480 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 16, 2025, 11:47