lundi 29 juin 2015

Validating POCO / VM class

I have an MVVM project which is hooked up to EF6 (Database First). I would like to use Data Annotations to take care of the validation, do I need to create a public properties on the VM to represent each field in the POCO class or do I add it to the POCO class directly (when the database is updated I will surely have to go through the process again or is there a way of separating this additional validation?)

Aucun commentaire:

Enregistrer un commentaire