5
We are with a doubt that analyst raised, when I use Dataannotations in Viewmodel in projects that use DDD in the case have a Domain layer and in the case will not expand, this use would eliminate the domino layer by is duplicating the field validation, for example:
I am validating if the email was filled in this case would need to do this validation again in the domain?
I wouldn’t know until because I don’t know much about D.O.D. and because I don’t think it’s a good methodology in most cases. I would say it depends :) This idea that the domain is so static displeases me. Things are full of contexts. Because I adopt a very different strategy I can’t help much more, but there’s a hint that things can become more complex than the DDD does, which by the way adds complexity to the application just because of the mechanism and not because of the domain, what is an irony :)
– Maniero