Activities of "liangshiwei"

I tried to use your code, but did not reproduce the problem.

I didn't customize the alert repository for simplicity, After inserting the alert entity, I called the save change method of the unit of work, because the code you provided uses the repository to query the alert entity.

Hi

I have reproduced the problem. Abp module needs to add ~ for all static resource reference paths. but this way of referencing resources is currently not supported. Please following https://github.com/abpframework/abp/issues/3352. Actually I don’t recommend you to use sub-application deployment :)

So , How should I reproduce your problem, can you provide steps?

I mean using the AddSubEvent method of the Alert entity.

private async Task<bool> AddToSubEventsAsync(Alert alert, IEnumerable<string>subEvents)
{
    Check.NotNull(alert, nameof(alert));
    Check.NotNull(subEvents, nameof(subEvents));

    var EventTypesMasterList = await _alertEventTypeRepository.GetListAsync();

    foreach (var subEvent in subEvents)
    {
        var eventId = EventTypesMasterList.FirstOrDefault(e => e.Name == subEvent);
        alert.AddSubEvent(eventId);  // This line   
    }
    return true;
}

Try :

public class OrderDtoValidator:AbstractValidator<SupplierCombinedDto>
    {
        public OrderDtoValidator(IStringLocalizer<MyProjectResource> _localizer)
        {
            RuleFor(x => x.Customer).SetValidator(new CustomerDtoValidator(_localizer));
            RuleFor(x => x.Address).SetValidator(new AddressDtoValidator(_localizer));
            
        }
    }

Currently community is discussing how to configure foreign keys, Please following: https://github.com/abpframework/abp/issues/3959,

Hi, You can add Fluent Validators in the Application project and you can inject IStringLocalizer interface to return localized content .

Is this problem only on azure vm? Do you have this problem when deploying to a local IIS server?

Try use AddSubEvent method to replace the following

await _alertSubEventTypeRepository.InsertAsync(new AlertSubEventType(alert.Id, eventId.Id));

What UI are you using?

Showing 2351 to 2360 of 2428 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13