Does ASP.Net MVC 2 validation need some more thought in terms of patterns and use?

后端 未结 5 1272
粉色の甜心
粉色の甜心 2021-02-01 07:09

Here is the lay of the land. Like most people I have my domain object and I have my view models. I love the idea of using view models, as it allows for models to be created spec

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 08:02

    Probably we shouldn't use view models at all? And define validation rules on model layer entities..

提交回复
热议问题