mapper两种方式映射

var dto = await model.BuildAdapter(GetTypeAdapterConfig()).AdaptToTypeAsync<BeingCheckDto>();
var dto= await _mapper.From(model).BuildAdapter(GetTypeAdapterConfig()).AdaptToTypeAsync<BeingCheckDto>();

posted @ 2022-12-19 09:50  冰封的心  阅读(29)  评论(0编辑  收藏  举报