Activities of "lalitChougule"

Hi,

I have implemented Serilog.Sinks.AwsCloudWatch to log my data to AWS-CloudWatch But the problem is according to the documentations of SeriLog I can log data as per LogEventLevel to the CloudWatch which creates huge amout of unnecessary data

What if I want to log only the data which get logged into AuditLog and AuditLogAction table from database to AWS-CloudWatch.

Is this possible and how to implement it ?

Thanks @liangshiwei

It worked, Just last question which remained unanswered before How do we Check Duplicate Entities in Fluent Validators ? I want to cross check from my Address table whether this record is already present in my table ( i.e duplicate address ) Is it possible in Fluent Validator ? And how do I do it ?

Thanks @liangshiwei

My DTO's are as below :

CustomerDto

public class CustomerDto : AuditedEntityDto<Guid>
{
    ....
}

AddressDto

public class AddressDto : AuditedEntityDto<Guid>
{
    ....
}

OrderDto

public class OrderDto : AuditedEntityDto<Guid>
{
    public CustomerDto Customer { get; set; }
    
    public AddressDto Address { get; set; }
}

As per your above solution I tried injecting IStringLocalizer<MyProjectResource> localizer as below

CustomerDtoValidator

public class CustomerDtoValidator : AbstractValidator<CustomerDto>
    {
        public CustomerDtoValidator(IStringLocalizer<MyProjectResource> _localizer)
        {
            ....
        }
    }

AddressDtoValidator

public class AddressDtoValidator : AbstractValidator<AddressDto>
    {
        public AddressDtoValidator(IStringLocalizer<MyProjectResource> _localizer)
        {
            ....
        }
    }

But I am not able to Implement below code for OrderDto :

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

ERROR: There is no argument given that corresponds to the required formal parameter '_localizer' of CustomerDtoValidator(IStringLocalizer

What should I pass as argument ?

How do we Check Duplicate Entities in Fluent Validators ? Where this duplicate check should be done? Contract/Domain/Application project ? Cause I have my Validator's in Application.Contracts project. Is this the right way to do it?

Hi,

I am able to create user using IdentityUserManager.CreateAsync method but once the user is created I want to return the inserted userId.

How to get inserted UserId ?

Showing 81 to 85 of 85 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 11, 2025, 13:20
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.