Ejemplo n.º 1
0
 /// <summary>
 /// 拦截删除操作
 /// </summary>
 /// <param name="entry">输入实体</param>
 protected virtual void InterceptDeletedOperation(EntityEntry entry)
 {
     if (GetUserId().IsEmpty())
     {
         return;
     }
     DeletionAuditedInitializer.Init(entry.Entity, GetUserId(), GetUserName());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 拦截删除操作
 /// </summary>
 /// <param name="entry">输入实体</param>
 protected virtual void InterceptDeletedOperation(EntityEntry entry)
 {
     DeletionAuditedInitializer.Init(entry.Entity, GetUserId(), GetUserName());
 }