using Furion.JsonSerialization; using YBEE.EQM.Core; namespace YBEE.EQM.Application; public class ExamSampleMapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() .Map(d => d.Config, s => JSON.Deserialize(s.Config, null)) .Map(d => d.IsFixedExamSample, s => s.ExamPlan.IsFixedExamSample) .Map(d => d.EducationStage, s => s.ExamPlan.EducationStage) ; config.ForType() .Map(d => d.Config, s => JSON.Deserialize(s.Config, null)) .Map(d => d.IsFixedExamSample, s => s.ExamPlan.IsFixedExamSample) .Map(d => d.EducationStage, s => s.ExamPlan.EducationStage) ; } }