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<Customer>().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:
- API
- 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:
Thanks, Dharma (Han Nguyen)
Yes, It's not the issue of ABP I just want to ask if is there any existing solution to use Devexpress Grid instead of Blazorise Grid. Thanks for your link I will try it. Dharma
Maybe this can help :-) In EntityFrameworkCore add ToLower()
.WhereIf(!string.IsNullOrWhiteSpace(filterText), e => e.Name.ToLower().Contains(filterText.ToLower())) .WhereIf(!string.IsNullOrWhiteSpace(name), e => e.Name.ToLower().Contains(name.ToLower()));
Thanks Buckoge
Hi,
I tried to create a new collation in Postgres to support case insensitive and create test table with columns associated with this new collation:
CREATE COLLATION english_ci (
PROVIDER = 'icu',
LOCALE = 'en-US@colStrength=secondary',
DETERMINISTIC = FALSE
)
But when I search on the page generated by ABP Suite it throw the error:
Do you have any sample to handle for this case?