Hi, I have an issue with Foreign Key when we use multiple modules. For example: I have 2 modules:
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<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)); }
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<Customer>().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:
Thanks, Dharma (Han Nguyen)
Thanks Dharma (Han Nguyen)
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