Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "mdframe"

Yes, I have read through the documentation several times. I have also applied the UseCase attribute, per the documentation, to the function and still no reason description other than the standard shows in the table for logging. I am not receiving any errors in the logs or in the application.

Hi, I am a new to ASPNET.Zero and have been working on some samples for understanding the architecture. I created a Contacts application from the RAD Tool with ASP.NET Core and Angular. When I look at the change logs I see the details of which fields were changed from their old value to the new one however I do not see a Reason description as I set in the service module.

I have the entity class defined as:

[Table("Contacts")]
    [Audited]
    public class Contact : FullAuditedEntity , IMayHaveTenant
    {
		public int? TenantId { get; set; }

Then in my ApplicationService I have the following:

        [AbpAuthorize(AppPermissions.Pages_Contacts_Edit)]       
        private async Task Update(CreateOrEditContactDto input)
         {
            var contact = await _contactRepository.FirstOrDefaultAsync((int)input.Id);

            var reason = string.Format("User: {0} was updated!", input.UserId.ToString());            
            using (_reasonProvider.Use(reason))
            {
                ObjectMapper.Map(input, contact);                
            }
            
         }

I do not have the UnitOfWork defined per the sample as I am assuming the DTO Mapper is taking care of the actual data layer so I made an assumption on how to set the Reason. What should I do and where would I see the Reason once it is recorded correctly?

Thank you,

Matt

Showing 81 to 82 of 82 entries