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));
     }
 }
Example #3
0
 protected virtual void SetModificationAuditProperties(object entityAsObj, long?userId)
 {
     EntityAuditingHelper.SetModificationAuditProperties(MultiTenancyConfig, entityAsObj, CodeZeroSession.TenantId,
                                                         userId);
 }
Example #4
0
 protected virtual void SetModificationAuditProperties(object entityAsObj, long?userId)
 {
     EntityAuditingHelper.SetModificationAuditProperties(entityAsObj, userId);
 }
Example #5
0
 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);
 }