You need to install these packages : )
private void ConfigureMenu(ServiceConfigurationContext context)
{
Configure<AbpNavigationOptions>(options =>
{
options.MenuContributors.Add(new ProductModuleHostMenuContributor(context.Services.GetConfiguration()));
});
}
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?
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.
b.HasOne<AppUser>().WithMany().HasForeignKey(x => x.AppUserId);
in YourDbContextModelCreatingExtensions
.*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));
});
*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.