Activities of "aliya"

  1. create a entity in Database.
  2. try to insert record in database.
  3. update that record by updating lastmodifierId.

var operation = await _operationRepository.GetAsync(id); operation.LastModificationTime = DateTime.UtcNow; operation.LastModifierId = await _authorizationHelper.GetCurrentUserId(); ObjectMapper.Map(input, operation); operation = await _operationRepository.UpdateAsync(operation, autoSave: true); return ObjectMapper.Map<Operation, OperationDto>(operation);

Hi Could we connect for this issue on call

LastModificationTime is updating that is working as expected

using System;
using Volo.Abp.Auditing;

namespace Volo.Abp.Domain.Entities.Auditing;

/// <summary>
/// Implements <see cref="IFullAuditedObject"/> to be a base class for full-audited aggregate roots.
/// </summary>
[Serializable]
public abstract class FullAuditedAggregateRoot : AuditedAggregateRoot, IFullAuditedObject
{
    /// <inheritdoc />
    public virtual bool IsDeleted { get; set; }

    /// <inheritdoc />
    public virtual Guid? DeleterId { get; set; }

    /// <inheritdoc />
    public virtual DateTime? DeletionTime { get; set; }
}

/// <summary>
/// Implements <see cref="IFullAuditedObject"/> to be a base class for full-audited aggregate roots.
/// </summary>
/// <typeparam name="TKey">Type of the primary key of the entity</typeparam>
[Serializable]
public abstract class FullAuditedAggregateRoot<TKey> : AuditedAggregateRoot<TKey>, IFullAuditedObject
{
    /// <inheritdoc />
    public virtual bool IsDeleted { get; set; }

    /// <inheritdoc />
    public virtual Guid? DeleterId { get; set; }

    /// <inheritdoc />
    public virtual DateTime? DeletionTime { get; set; }

    protected FullAuditedAggregateRoot()
    {

    }

    protected FullAuditedAggregateRoot(TKey id)
    : base(id)
    {

    }
}

FullAuditedAggregateRoot<Guid>

Project version net6.0 entity class--- for all entities its not working not any particular entity

Showing 1 to 6 of 6 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35