Skip to content

Commit

Permalink
fix: adjust audit entity creation
Browse files Browse the repository at this point in the history
Refs: #1121
  • Loading branch information
Phil91 committed Oct 28, 2024
1 parent 803d98b commit a7c746b
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ private static MemberInitExpression CreateAuditEntityExpression<TAuditEntity>(IE
{
var memberBindings = sourceProperties.Select(p =>
CreateMemberAssignment(typeof(TAuditEntity).GetMember(p.Name)[0], Expression.Property(entity, p)))
.Append(CreateMemberAssignment(typeof(TAuditEntity).GetMember(AuditPropertyV1Names.AuditV1Id.ToString())[0], Expression.New(typeof(Guid))))
.Append(CreateMemberAssignment(typeof(TAuditEntity).GetMember(AuditPropertyV1Names.AuditV1OperationId.ToString())[0], Expression.Constant(auditOperationId)))
.Append(CreateMemberAssignment(typeof(TAuditEntity).GetMember(AuditPropertyV1Names.AuditV1DateLastChanged.ToString())[0], Expression.New(typeof(DateTimeOffset))));

Expand Down

0 comments on commit a7c746b

Please sign in to comment.