multi-step registration process issues in asp.net mvc (split viewmodels, single model)

后端 未结 7 1183
走了就别回头了
走了就别回头了 2020-11-22 17:08

I have a multi-step registration process, backed by a single object in domain layer, which have validation rules defined on properties.

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 17:29

    One option is to create set of identical tables that will store the data collected in each step. Then in the last step if all goes well you can create the real entity by copying the temporary data and store it.

    Other is to create Value Objects for each step and store then in Cache or Session. Then if all goes well you can create your Domain object from them and save it

提交回复
热议问题