Activities of "hanntd"

Thanks, I forgot to add the mapping for the UI Layer, now it already worked.

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<Country, CountryDto>();
    CreateMap<Country, CountryExcelDto>();
 **   CreateMap<CountryDto, CountryCreateDto>()
        .ReverseMap();
    CreateMap<CountryDto, CountryUpdateDto>()
        .ReverseMap();**

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

Thanks a lot for your support, I will try your code.

I have done as you recommended and it threw another exception:

Hi Jack, I did as you recommended, I tried to add try... catch in DeleteAsync in ApplicationService but when I debug it always by passed. I only can catch the exception in blazor page but there is no detail to help me check is it FGK exception or not. How and where can I catch this exception so that I can get the detail error and check if it is FGK exception I will throw a friendly message to user. Thanks, Daharma (Han Nguyen)

Thanks Jack, I will try as you advised.

Thanks Jack a lot, I already remove soft delete for Customer and system already thrown the exception message. Another question, how can we capture this except to show more friendly message to user, as currently the message is only "An internal error..." and user don't know what happened. Thanks, Dharma (Han Nguyen)

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

There are only two websites for your solution:

  1. API
  2. Blazor WASM

Since the blazor wasm is a front web app, and there is only a backend app you don't need to use Redis.

Hi Maliming, May I ask you for your advice, which application model will be the best? We should seperate the Auth server or we should combine with HttpApi? Thanks

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)

Showing 111 to 120 of 149 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 15, 2025, 06:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.