修改用户日志

This commit is contained in:
2024-12-26 14:54:13 +08:00
parent 5f9572a0ab
commit cf9248b0cc
13 changed files with 19088 additions and 71 deletions
@@ -63,6 +63,15 @@ public class IRaCISDBContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<UserLog>(entity =>
{
entity.OwnsOne(x => x.JsonObj, ownedNavigationBuilder =>
{
ownedNavigationBuilder.ToJson();
});
});
modelBuilder.Entity<TestLength>(entity =>
{
// 使用部分加密值转换器,前 2 个字符不加密,方便模糊搜索
@@ -147,7 +156,7 @@ public class IRaCISDBContext : DbContext
//软删除筛选器通常依赖于实体模型的完整定义(例如属性映射、继承关系等)
foreach (var entityType in modelBuilder.Model.GetEntityTypes())
{
@@ -173,7 +182,7 @@ public class IRaCISDBContext : DbContext
{
if (navigation.IsCollection) continue;
#region
// 比如 e.SourceSubjectVisit.IsDeleted == False 还会导致 dicom 查询增加额外很多的连表 因为访视 项目 项目中心,dicom 都是软删除
//
@@ -634,7 +643,7 @@ public class IRaCISDBContext : DbContext
public virtual DbSet<TrialIdentityUser> TrialIdentityUser { get; set; }
}