/// <summary> /// 将entity转换为vo。不包括来自元数据的属性 /// </summary> private LessonVo toVo(LessonEntity entity) { LessonVo vo = new LessonVo(); vo.Id = entity.Id; vo.Ename = entity.Ename; vo.Title = entity.Title; return(vo); }
public LessonVo toMoreVo(LessonEntity entity) { LessonVo vo = toVo(entity); return(vo); }
public LessonVo toEmptyVo() { LessonVo vo = new LessonVo(); return(vo); }