/// <summary> /// 初始化创建审计信息 /// </summary> private void InitCreationAudited(EntityEntry entry) { if (GetUserId().IsEmpty()) { return; } CreationAuditedInitializer.Init(entry.Entity, GetUserId(), GetUserName()); }
/// <summary> /// 初始化创建审计信息 /// </summary> private void InitCreationAudited(EntityEntry entry) { CreationAuditedInitializer.Init(entry.Entity, GetSession()); }
/// <summary> /// 初始化创建审计信息 /// </summary> /// <param name="entry">输入实体</param> private void InitCreationAudited(EntityEntry entry) => CreationAuditedInitializer.Init(entry.Entity, GetUserId(), GetUserName());
/// <summary> /// 初始化创建审计信息 /// </summary> /// <param name="entry">输入实体</param> private void InitCreationAudited(EntityEntry entry) { CreationAuditedInitializer.Init(entry.Entity, GetUserContext()); }
/// <summary> /// 初始化创建审计信息 /// </summary> /// <param name="entry">数据实体</param> private void InitCreationAudited(DbEntityEntry entry) { CreationAuditedInitializer.Init(entry); }