Compare commits

..

No commits in common. "6a63ffd1f20a98cbb17089902c69249eb3fc1deb" and "99e5b102b7e729bccaeb992b2d2d6460f9d169f8" have entirely different histories.

1 changed files with 4 additions and 19 deletions

View File

@ -1590,30 +1590,15 @@ namespace IRaCIS.Core.Infra.EFCore.Common
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser)))
{
var type = GetEntityAuditOpt(item);
var entity = item.Entity as TrialIdentityUser;
string extraIndentification = string.Empty;
var identityUser = await _dbContext.IdentityUser.AsNoTracking().Where(x => x.Id == entity.IdentityUserId).FirstOrDefaultAsync();
//var user = await _dbContext.Users.Include(x => x.UserTypeRole).FirstOrDefaultAsync(x => x.Id == entity.UserId);
await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO
{
//IsDistinctionInterface = true ,
IsDistinctionInterface = type == AuditOpt.Update ? true : false,
TrialId = x.TrialId,
IsDistinctionInterface = false,
ObjectRelationParentId = x.TrialId,
ExtraIndentification = extraIndentification,
//ObjectRelationParentId2 = x.IdentityUserId,
}, new
{
identityUser.FullName,
identityUser.EMail,
identityUser.Code,
identityUser.UserCode,
identityUser.UserName,
identityUser.DepartmentName,
identityUser.Phone,
identityUser.OrganizationName,
ObjectRelationParentId2 = x.IdentityUserId,
});
}