Activities of "liangshiwei"

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.

Hi,

We have fixed the problem in 4.4.0. For now, try:

appsettings

{
  ......
  "RemoteServices": {
    "Default": {
      "BaseUrl": "https://localhost:44301/"
    },
    "<YourProjectName>": {
      "BaseUrl": "https://localhost:44300/"
    }
  },
  "AbpCli": {
    "Bundle": {
      "Mode": "BundleAndMinify",
      /* Options: None, Bundle, BundleAndMinify */
      "Name": "global",
      "Parameters": {
        "LeptonTheme.Style": "Style1",
        /* Options: Style1, Style2... Style6 */
        "LeptonTheme.ChangeStyleDynamically": "true"
      }
    }
  }
}

index.html

*HostMenuContributor

public class <YourProjectName>HostMenuContributor : IMenuContributor
{
    private readonly IConfiguration _configuration;

    public <YourProjectName>HostMenuContributor(IConfiguration configuration)
    {
        _configuration = configuration;
    }

    public async Task ConfigureMenuAsync(MenuConfigurationContext context)
    {
        if (context.Menu.Name == StandardMenus.User)
        {
            await ConfigureUserMenuAsync(context);
        }
    }

    private Task ConfigureUserMenuAsync(MenuConfigurationContext context)
    {
        var accountStringLocalizer = context.GetLocalizer<AccountResource>();

        var identityServerUrl = _configuration["AuthServer:Authority"] ?? "";

        context.Menu.AddItem(new ApplicationMenuItem(
            "Account.Manage",
            accountStringLocalizer["ManageYourProfile"],
            $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration["App:SelfUrl"]}",
            icon: "fa fa-cog",
            order: 1000,
            null).RequireAuthenticated());

        return Task.CompletedTask;
    }
}

*BlazorHostModule

[DependsOn(
    typeof(AbpAutofacWebAssemblyModule),
    typeof(AbpAspNetCoreComponentsWebAssemblyLeptonThemeModule),
    typeof(LeptonThemeManagementBlazorWebAssemblyModule),
    typeof(AbpIdentityProBlazorWebAssemblyModule),
    typeof(AbpAccountAdminBlazorWebAssemblyModule),
    typeof(AbpIdentityServerBlazorWebAssemblyModule),
    typeof(AbpAuditLoggingBlazorWebAssemblyModule),
    typeof(TextTemplateManagementBlazorWebAssemblyModule),
    typeof(LanguageManagementBlazorWebAssemblyModule),
    typeof(SaasHostBlazorWebAssemblyModule),
    typeof(AbpSettingManagementBlazorWebAssemblyModule),
    typeof(<YourProjectName>BlazorModule)
)]
public class <YourProjectName>BlazorHostModule : AbpModule

*IdentityServerModule

[DependsOn(
    typeof(AbpAccountPublicWebIdentityServerModule),
    typeof(AbpAccountPublicApplicationModule),
    typeof(AbpAspNetCoreMvcUiMultiTenancyModule),
    typeof(AbpAspNetCoreMvcModule),
    typeof(AbpAspNetCoreMvcUiLeptonThemeModule),
    typeof(AbpAuditLoggingEntityFrameworkCoreModule),
    typeof(AbpAutofacModule),
    typeof(AbpCachingStackExchangeRedisModule),
    typeof(AbpEntityFrameworkCoreSqlServerModule),
    typeof(AbpIdentityProEntityFrameworkCoreModule),
    typeof(AbpIdentityApplicationModule),
    typeof(AbpIdentityHttpApiModule),
    typeof(AbpIdentityServerEntityFrameworkCoreModule),
    typeof(LeptonThemeManagementHttpApiModule),
    typeof(LeptonThemeManagementApplicationModule),
    typeof(LeptonThemeManagementDomainModule),
    typeof(AbpPermissionManagementDomainIdentityModule),
    typeof(AbpPermissionManagementEntityFrameworkCoreModule),
    typeof(AbpPermissionManagementApplicationModule),
    typeof(AbpPermissionManagementHttpApiModule),
    typeof(AbpSettingManagementEntityFrameworkCoreModule),
    typeof(AbpSettingManagementApplicationModule),
    typeof(AbpSettingManagementHttpApiModule),
    typeof(AbpSettingManagementEntityFrameworkCoreModule),
    typeof(AbpFeatureManagementHttpApiModule),
    typeof(AbpFeatureManagementApplicationModule),
    typeof(AbpFeatureManagementEntityFrameworkCoreModule),
    typeof(SaasEntityFrameworkCoreModule),
    typeof(SaasHostApplicationModule),
    typeof(SaasHostHttpApiModule),
    typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
    typeof(BlobStoringDatabaseEntityFrameworkCoreModule),
    typeof(<YourProjectName>ApplicationContractsModule),
    typeof(AbpSwashbuckleModule),
    typeof(AbpAspNetCoreSerilogModule)
    )]
public class <YourProjectName>IdentityServerModule : AbpModule

Then run abp bundle command in the blazor folder to update resource references.

Hi,

Open *.EntityFrameworkCoreModule and find Configure<AbpDbContextOptions>:

Configure<AbpDbContextOptions>(options =>
{
    /* The main point to change your DBMS.
     * See also MyProjectNameMigrationsDbContextFactory for EF Core tooling. */
    options.UseSqlServer();

    options.Configure(c =>
    {
        c.DbContextOptions.UseTriggers();
    });
});
Showing 5121 to 5130 of 5968 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11