protected virtual void SetModificationAuditProperties(object entityAsObj, long?userId) { EntityAuditingHelper.SetModificationAuditProperties( MultiTenancyConfig, entityAsObj, AbpSession.TenantId, userId, CurrentUnitOfWorkProvider?.Current?.AuditFieldConfiguration ); }
protected virtual void ApplyAbpConceptsForModifiedEntity(DbEntityEntry entry, long?userId, EntityChangeReport changeReport) { EntityAuditingHelper.SetModificationAuditProperties(entry.Entity, userId); if (entry.Entity is IHasDelete && entry.Entity.As <IHasDelete>().IsDel) { EntityAuditingHelper.SetDeletionAuditProperties(entry.Entity, userId); changeReport.ChangedEntities.Add(new EntityChangeEntry(entry.Entity, EntityChangeType.Deleted)); } else { changeReport.ChangedEntities.Add(new EntityChangeEntry(entry.Entity, EntityChangeType.Updated)); } }
protected virtual void SetModificationAuditProperties(object entityAsObj, long?userId) { EntityAuditingHelper.SetModificationAuditProperties(MultiTenancyConfig, entityAsObj, CodeZeroSession.TenantId, userId); }
protected virtual void SetModificationAuditProperties(object entityAsObj, long?userId) { EntityAuditingHelper.SetModificationAuditProperties(entityAsObj, userId); }
protected virtual void Apply4ModifiedEntity(DbEntityEntry entry, long?userId) { EntityAuditingHelper.SetModificationAuditProperties(entry.Entity, userId); }
protected virtual void ApplyAbpConceptsForModifiedEntity(EntityEntry entry) { EntityAuditingHelper.SetModificationAuditProperties(entry.Entity, EasyNetSession.UserId); }