Hi,
I have tried what you suggested but still no luck. While debugging I can also see that the client is not inserted until the cursor exits the app service
I have the following table/model
[Table("Client")]
public class Client : Entity<int>, IHasCreationTime
{
[Required]
[StringLength(128)]
public string Name { get; set; }
[StringLength(512)]
public string Description { get; set; }
}
and the following method in controller:
public async Task<Response> CreateClient(Client input)
{
input.Name = null;
Response result = new Response();
try
{
await repo.InsertAsync(input);
}
catch (Exception ex)
{
if (ex.InnerException != null)
result.ErrorMessage = ex.InnerException.Message;
else
result.ErrorMessage = ex.Message;
}
return result;
}
based on the fact that I set input.Name = null
when await repo.InsertAsync(input);
is called it throws an exception (Name is required).
Problem is that the exception is not catched inside the catch clause but instead I get in client app (angular) a 500 error (exception is catched somewhere else)
This is a problem for me as I need to catch the exception and perform some other logic. Why does it fail?
Thanks
Hi,
Which spinner library is used for angular?
How can I change it?
Thanks
Never mind. Found the file it is called abp.notify.js
Thanks
And how do I do it since it is part of the abp?
OK But where do I have to configure its options?
I have updated to 6.2.1 angular & asp.net core and I want to customize some toaster settings.
Before I used to do it like:
toastr.options.escapeHtml = true;
toastr.options.positionClass = 'toast-top-right';
toastr.options.toastClass = "custom-toastr";
in root module under
appSessionService.init().then(
(result) => {
})
After I updated to 6.2.1 in topbar.component.cs all functions similar to
changeMySettings(): void {
abp.event.trigger('app.show.mySettingsModal');
}
do not open the popups.
Any idea what do I need to check?
Thanks in advance
Hi
I am trying to create two new tables that have a one to many relationship. I am looking at the source code and I can not find how it is done.
e.g cant see where the relationship between AbpEditions table and AppSubscriptionPayments table is set.
Hi,
Still getting the problem from windows defender. tried on a second pc same issue.