常用方法
常用方法
常用方法
常用方法
public IEnumerable <ZipDistanceDto> GetZipDistancesQueryResults(string id) { ZipDistanceQuery query = store.GetQuery <ZipDistanceQuery>(id); foreach (var dist in query.DistancesToQueryFor) { dist.Distance = DateTime.Now.Millisecond.ToString(); } var distanceDtos = Mapper.Map <ZipDistance[], ZipDistanceDto[]>(query.DistancesToQueryFor); return(distanceDtos); }