- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes / no
- Exception message and stack trace:
- Steps to reproduce the issue:"
13 Answer(s)
-
0
Hi, can you share the project version and your entity class?
-
0
Project version net6.0 entity class--- for all entities its not working not any particular entity
-
0
What is the base class of your classes?
-
0
FullAuditedAggregateRoot<Guid>
-
0
Can you share the bas class of dbcontext?
-
0
Is the LastModificationTime column null or data?
-
0
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) { } }
-
0
LastModificationTime is updating that is working as expected
-
0
hi
How can we reproduce this in a template project?
-
0
Hi Could we connect for this issue on call
-
0
I still need to reproduce the problem locally, Can you share some steps and code?
-
0
- create a entity in Database.
- try to insert record in database.
- 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);
-
0
hi
Do you mean the
LastModifierId
ofoperation
isnull
after_operationRepository.UpdateAsync(operation, autoSave: true);
?Can you share a template project? liming.ma@volosoft.com