public Yw_StudentWrongSubjectExt MakeTranslator(Yw_StudentWrongSubject entity) { Yw_StudentWrongSubjectExt realEntity = entity.ConvertTo <Yw_StudentWrongSubjectExt>(); if (!string.IsNullOrEmpty(entity.Yws_StudentAnswer)) { realEntity.Yws_Answer_Obj = AnswerFactory.ConvertByType((SubjectTypeEnum)entity.Yws_SubjectType, entity.Yws_StudentAnswer); } return(realEntity); }