Entity vs Model vs View Model

后端 未结 4 580
Happy的楠姐
Happy的楠姐 2020-12-02 06:28

I just spent some time reading about this terms (I don\'t use them that much since we don\'t have any MVC applications and I usually just say \"model\"), but I have the feel

4条回答
  •  温柔的废话
    2020-12-02 06:41

    My understanding is that the Model is central notion here, it reflects the understanding of the problem being solved. The Entities determine how Model objects will be stored in database. The Viewmodels determine what part of Model is gonna be shown to the end user.

提交回复
热议问题