【发布时间】:2019-02-11 15:51:53
【问题描述】:
如果我要使用 Vue.js 在前端运行发布请求并发布包含我需要回发的数据的 javascript 实体模型,它如何映射到我发布此实体的控制器中的 DTO回到?它是根据属性的名称自动完成的,还是有更多的功能?
this.$http.post(this.apiUrl, this.entity).then(saveCallback, this.dataReadFailure);
public virtual async Task<ActionResult> Post([FromBody] CreateUpdateDTO dto)
如果我有类似上面的内容,那么来自 post 请求的实体是如何映射到控制器中的 DTO 的?
【问题讨论】:
标签: .net vue.js asp.net-core dto