0

Having 3 copies of the same model, how does this fit in with DRY principle? Or is DRY sacrificed to bring in better testability?

IS there a method that people use to automatically update each model? eg. If i have a User model/viewmodel/datamodel, and want to add IsDeleted property, I have to change in 3 places.

Am I missing something here??

tereško
  • 58,060
  • 25
  • 98
  • 150
DrZeuso
  • 181
  • 2
  • 10
  • take a look [this post](http://stackoverflow.com/questions/18109547/orm-entities-vs-domain-entities-under-entity-framework-6-0) – Yuliam Chandra Aug 20 '14 at 16:55

1 Answers1

0

Here is a similar question, you may be able to solve most of your issues with custom validator classes and inheritance.

How do I remain DRY with asp.net mvc view models & data annotation attributes?

Community
  • 1
  • 1
LSU.Net
  • 829
  • 6
  • 17