字段修改

This commit is contained in:
he
2026-08-13 15:16:51 +08:00
parent 416793018f
commit e159f8a82b
5 changed files with 74 additions and 16 deletions
@@ -119,6 +119,14 @@ public class IRaCISDBContext : DbContext
);
});
modelBuilder.Entity<ReadingQuestionVisitJudgeRule>(entity =>
{
entity.Property(e => e.AnswerCombination).HasConversion(
v => v == null ? null : JsonConvert.SerializeObject(v),
v => string.IsNullOrEmpty(v) ? new List<AnswerCombinationDto>() { } : JsonConvert.DeserializeObject<List<AnswerCombinationDto>>(v)
);
});
#region pgsql codefirst
//if (base.Database.IsNpgsql())
//{