public PlaceVo toEmptyVo() { PlaceVo vo = new PlaceVo(); List <TheTimeMachineEntity> theTimeMachineEntityList = theTimeMachineMeta.GetEntityList(); vo.TimeMachineId = theTimeMachineConvertor.getVoList(theTimeMachineEntityList); return(vo); }
public PlaceVo toMoreVo(PlaceEntity entity) { PlaceVo vo = toVo(entity); List <TheTimeMachineEntity> theTimeMachineEntityList = theTimeMachineMeta.GetEntityList(); vo.TimeMachineId = theTimeMachineConvertor.getMoreVoList(theTimeMachineEntityList, entity.TimeMachineId); return(vo); }
/// <summary> /// 将entity转换为vo。不包括来自元数据的属性 /// </summary> private PlaceVo toVo(PlaceEntity entity) { PlaceVo vo = new PlaceVo(); vo.Id = entity.Id; vo.Name = entity.Name; vo.Longitude = entity.Longitude; vo.Latitude = entity.Latitude; return(vo); }