Activities of "Bryan-EDV"

Hi Maliming,

Noted on that. As I still need some filtering by TenantId, A possible workaround for me is to add TenantId without implementing IMultiTenant.

Is there any way to automatically populate this TenantId field with the CurrentTenant? Thank you

Hi Maliming,

Just as context, our business requirement is that for some custom entities (e.g. AppBooks), that our data must reside only in the Host Database (even if tenant is using its own DB Connection String). But the data must still be accessible from the Tenant.

Is there a better way to achieve this outcome in the ABP framework?

Thank you

Thank you. The workaround I will then try is to implement a new DbContext class and apply the [IgnoreMultiTenancy] attribute

I've Created a class called HostOnlyDbContext.cs

[ConnectionStringName("Default")]
[IgnoreMultiTenancy]
public class HostOnlyDbContext : AbpSolution4DbContextBase<HostOnlyDbContext>
{
    public DbSet<Experience> Experiences { get; set; } = null!;

    public HostOnlyDbContext(DbContextOptions<HostOnlyDbContext> options)
        : base(options)
    {
    }

    protected override void OnModelCreating(ModelBuilder builder)
    {
        builder.SetMultiTenancySide(MultiTenancySides.Both);

        builder.Entity<Experience>(b =>
        {
            b.ToTable(AbpSolution4Consts.DbTablePrefix + "Experiences", AbpSolution4Consts.DbSchema);
            b.ConfigureByConvention();
            b.Property(x => x.TenantId).HasColumnName(nameof(Experience.TenantId));
            b.Property(x => x.Name).HasColumnName(nameof(Experience.Name));
        });
    }

And also registered the DbContext in AbpSolution4EntityFrameworkCoreModule.cs

 public override void ConfigureServices(ServiceConfigurationContext context)
 {
     context.Services.AddAbpDbContext<AbpSolution4DbContext>(options =>
     {
         /* Remove "includeAllEntities: true" to create
          * default repositories only for aggregate roots */
         options.AddDefaultRepositories(includeAllEntities: true);

         options.AddRepository<Conversation, Conversations.EfCoreConversationRepository>();
     });

     context.Services.AddAbpDbContext<HostOnlyDbContext>(options =>
     {
         options.AddDefaultRepositories(includeAllEntities: true);
         options.AddRepository<Experience, Experiences.EfCoreExperienceRepository>();
     });

Would this work? I am having trouble understanding how the original AbpSolution4DbContext is being injected and whether it is possible to reference AbpSolution4DbContext for the Conversation entity but use HostOnlyDbContext for the Experience entity.

also, is there a way to migrate BOTH the AbpSolution4DbContext and HostOnlyDbContext during DB Migration? Currently it is only running migrations for AbpSolution4DbContext

Hi Anjali,

It seems like the OP was asking about ignoring the [IgnoreMultiTenancy] decorator. My question is different, as I want to apply this [IgnoreMultiTenancy] decorator on an entity level.

Otherwise, we may need to create a new DbContext for all entities which are IMultiTenant but still use Host DB Context (Even if the Tenant has its own DB Connection String)

ok thank you

Thank you very much. Managed to get the customized login page up and running, however where can i find the layout page?

I cannot seem to remove my app name and language switcher although i can change the logo.

I understand that i need to add and edit a layout file somewhere but it is not in the downloaded source code (abp get-source Volo.Abp.Account.Pro)

Hi,

This is free version source code,

you can download account pro module source code: abp get-source Volo.Abp.Account.Pro

can you point me to the correct documentation? thank you.

which do i install? https://abp.io/packages

I am looking for the login page.

Hello,

For Identity management it has all 3 UIs i.e. MVC , Angular and Blazor . please check https://abp.io/docs/latest/modules/identity#user-interface

Thanks,

Sorry let me correct myself, i am actually on the Business license that says its includes "full source code of pro application modules"

Just to summarize our above conversation, to edit or replace the UI source code of the pre-built pages, i can only

  1. use replaceable components for Angular , like in this link (https://academy.hiretechteam.com/blog/createCustomLoginPageAbp/)
  2. replace the razor pages in .NET by copying this source code (https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml#L61C11-L61C141) and using this documentation (https://abp.io/docs/2.8/How-To/Customize-Login-Page-MVC#overriding-the-login-page-ui)

also, if i have already set up my project in angular, can i still use method 2 of the above?

For the identity module i also don't see the UI source code in my angular project, does it mean that similiar to the login page, i need to copy and paste the code from here? https://github.com/abpframework/abp/tree/dev/modules/identity/src/Volo.Abp.Identity.Web

Thank you.

Hello,

ABP contains a separate Authserver which is why it uses the basic model for authentication (MVC).

For customizing the login page please refer to https://academy.hiretechteam.com/blog/createCustomLoginPageAbp/ or check a similar issue https://github.com/abpframework/abp/issues/15186.

We value your feedback, and we are constantly working on improving the framework.

Thanks

ok thank you for confirming this.

How about the other pages like Identity management? also MVC? or they are available in angular code?

Hello,

please check here https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml#L61C11-L61C141 Please let me know what you want to achieve so I can better help you.

Thanks

ok, so these pages are in ASP.NET Core Razor Pages, which are technically NOT angular right?

When we bought ABP and saw that it has angular support , we are under the impression that all front end source will be in angular. But this turns out to be false.

We will now need to edit the pre built pages on .NET and build custom pages on angular.

This is a bad design, because if we need to change the button colours for our applciation, we will need to edit both the .NET and the angular source code. this is inefficient.

Do your other Angular clients have this issue?

Thank you.

Showing 91 to 100 of 102 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 December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.