Activities of "hanntd"

Hi, I still confuse to use Distributed events for my case:

  • I'm in module OM (Order Management) and I want to retrieve list of Customer from Module AR (Account Receivable).
  • And in some cases is vice versa, such as I'm in module AR and I want to retrieve list of Orders (in OM module) of a customer in AR module. Could you please give me a sample code or workflow for my case? Thanks

Hi Abp Team, Recently I have a problem with my own module that it cannot show the language, it run properly before and other modules are still ok for language loading. Here my en.json file: { "culture": "en", "texts": { "SamplePageMessage": "A sample page for the SharedInformation module", "Menu:SharedInformation": "Shared Information", "Menu:GeographicalSubdivisions": "Geographical Subdivisions", "Menu:Taxes": "Taxes", "Menu:GeographicalSalesStructure": "Geographical Sales Structure", "Menu:Others": "Others", "Permission:Countries": "Countries", "Permission:SharedInformation": "Shared Information", "Permission:Create": "Create", "Permission:Edit": "Edit", "Permission:Delete": "Delete", "Countries": "Countries", "NewCountry": "New Country", "Country": "Country", "Menu:Countries": "Countries", "SeeAdvancedFilters": "Advanced filters", "DeleteConfirmationMessage": "Are you sure you want to delete this record?", "SavingConfirmationMessage": "Your data has been modified. Do you wish to leave and lose the pending changes?", "FGKDeletetionException": "The deleting record is already used in table: {0}!" } }

Hi, I'm sorry because I haven't ever used events bus before and I'm quite new to ABP Framework so I still confuse how to retrieve data from an entity in another modules so that I can join with the entity in the current module. Which and where I need to publish and subscribe? Thanks Dharma (Han Nguyen)

Thanks for your information but it will be helpful if you have a document guide step by step how I can do in ABP to use distributed events for my case. Thanks, Dharma (Han Nguyen)

Hi Jfistelmann, Thanks for your information, I can merge two DbContext and do the join query well but having the issue we need to add DbSet for all AggregateRoot/Enties in GL Module although I just need one Aggregate is Account: And the second issue I mentioned in the first post is still cannot resolve, mean I cannot do migration if the table having foreign key refer to the Id in the Account table.

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)

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&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)); }

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

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

Showing 91 to 100 of 135 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20