Activities of "hanntd"

Hi, I have an issue with Foreign Key when we use multiple modules. For example: I have 2 modules:

  • Module 1: HQSOFT.eBiz.GeneralLedger, in this module we have Account entity/table (Id, AcountCode, AccountName...)
  • Module 2: HQSOFT.SharedInformation, in this module we have ReasonCode entity/table (Id, Code, Description, AccountId,....
  • ReasonCode have a FGK is AccountId that reference to Id in Account table. Currently I have 2 issues:
  1. I cannot using Add-migration to create ReasonCode table as it alwasy throw this error: The entity type 'ExtraPropertyDictionary' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943. PM>. I have to create table without FGK then I added manual from DB.
  2. The second issue efcore don't allow to use join in GetQueryForNavigationPropertiesAsync because it couldn't file the Account table in the ShareInformationDbContext and throw the error: Cannot create a DbSet for 'Account' because this type is not included in the model for the context. protected virtual async Task<IQueryable<ReasonCodeWithNavigationProperties>> GetQueryForNavigationPropertiesAsync() { return from reasonCode in (await GetDbSetAsync()) join account in (await GetDbContextAsync()).Set<Account>() on reasonCode.AccountId equals account.Id into accounts from account in accounts.DefaultIfEmpty() select new ReasonCodeWithNavigationProperties { ReasonCode = reasonCode, Account = account }; }:

How can we handle for this case as our solution are separated to many modules and sometime we need to join or get data from other modules. Thanks Dharma (Han Nguyen)

Hi, I'm trying to map from CountryDto to CountryCreateDto but it threw the error: AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping. Although I already add Createmap for above mapping:

public SharedInformationApplicationAutoMapperProfile()
{
    /* You can configure your AutoMapper mapping configuration here.
     * Alternatively, you can split your mapping configurations
     * into multiple profile classes for a better organization. */

    CreateMap&lt;Country, CountryDto&gt;();
    CreateMap&lt;Country, CountryExcelDto&gt;();
 **   CreateMap&lt;CountryDto, CountryCreateDto&gt;()
        .ReverseMap();
    CreateMap&lt;CountryDto, CountryUpdateDto&gt;()
        .ReverseMap();**

I call the mapping here and threw the error: if (editModel != null && e.IsNew) { await CountriesAppService.CreateAsync(ObjectMapper.Map<CountryDto, CountryCreateDto>(editModel)); }

Hi, I'm using Postgres and I'd to prevent user delete Customer record if that record alread used in SalesOrder Table. I already defined the foreignkey in SalesOrder as the below code, but there is no happen when I deleted customer. I expected an exception message will be thrown when I delete a customer already used in dependent tables.

b.ToTable(OrderManagmentDbProperties.DbTablePrefix + "SalesOrders", OrderManagmentDbProperties.DbSchema);
b.ConfigureByConvention();
b.Property(x => x.OrderNumber).HasColumnName(nameof(SalesOrder.OrderNumber)).IsRequired().HasMaxLength(SalesOrderConsts.OrderNumberMaxLength);
b.Property(x => x.OrderDate).HasColumnName(nameof(SalesOrder.OrderDate));
b.Property(x => x.Status).HasColumnName(nameof(SalesOrder.Status));
b.Property(x => x.SalesPerson).HasColumnName(nameof(SalesOrder.SalesPerson)).HasMaxLength(SalesOrderConsts.SalesPersonMaxLength);
b.Property(x => x.TotalAmount).HasColumnName(nameof(SalesOrder.TotalAmount));
b.HasOne&lt;Customer&gt;().WithMany().IsRequired().HasForeignKey(x => x.CustomerId).OnDelete(DeleteBehavior.SetNull);

});

Please help me for this issue. Thanks, Dharmar (Han Nguyen)

Hi, I'm using ABP Suite to create an application solution with following options:

  • UI: Blazor Wasm
  • DB: Postgres
  • Separate Authentication Server: un-checked
  • Progressive web application: checked I found that there is no configuration in the generated source code. Can we apply Redis configuration for this kind of solution?

Thanks, Dharma (Han Nguyen)

  • ABP Framework version: v7.2.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes Hi, I'm use Devexpress Blazor Grid to replace for Blazorise Datagrid in ABP Framework. I'm having issue with paging processing because Devexpress Blazor Grid doesn't have ReadData event so how I can force Devexpress Blazor Grid to call OnDataGridReadAsync to load data by runtime when user click on paging menu instead of loading full data at the beginning? Thanks Dharma Han Nguyen
  • ABP Framework version: v7.2.2
  • UI type: Blazor
  • DB provider: Postgres
  • Tiered (MVC) or Identity Server Separated (Angular): yes Hi, How to disable case sensitive filter when searching as we are using Postgres. Thanks Dharma Han Nguyen
  • ABP Framework version: v7.1.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes Hello ABP Team, I'm using ABP Suite to generate ABP Module Template and I need your support followings:
  1. How can I generate Blazor UI for my generated Module template, when added new entity by using ABP Suite it will created MVC UI as default.
  2. How can I package my Module so that I can using package to import into my Main solution instead of reference module projects in the source code. Is there any document related to this toptic?

Thanks Dharma (Han Nguyen)

  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:
  1. Deploy Abp applications to IIS Server as a application under the root web site, because we have many projects on every environment (dev, test, production).
  2. Run the application the error show as above, it seem the framework doesn't support for relative path (~/)
  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  1. Used ABP Suite to generate project template for Blazor Assembly
  2. Migrated and run in development mode: OK
  3. Deploy to IIS:
    1. Auth Server: OK
    2. API Swagger: OK
    3. Blazor Web: Show error for login frame as picture above

Dear ABP Team, May I ask for a template to dev Flutter mobile app using ABP Framework as the backend, very appreciate if we have a sample or template for this. Thanks Dharma Han Nguyen

Showing 21 to 30 of 32 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 October 20, 2025, 13:25