Do we agree that adding validation atibutes just above auto generated POCOs entities (like with EF 4.x Dbcontext Generator template) is meaningless ?
Because each time the tool is ran, attributes are erased.
My question is : Is there a way to maintain both auto generated pocos entities one the one hand, and validation attributes on the other ?
Seems that it would be possible with a code first approach ?
Actually I sarted my project with a database first approach and auto generated my POCOs. Would it be possible to get rid of .tt files, keep generated pocos and use code first approach for managing new fields, validation attributes (and so on ...) ? Will the changes on POCOs update my database tables ?
Thanks a lot for your lights.