字段修改
This commit is contained in:
@@ -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())
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user