dataannotations in derived class in mvc

0

I have the Person Class

public class Person
    {

        public int PersonID { get; set; }
        public string Name { get; set; }
        public string SurName { get; set; }
        public string LastName { get; set; }
        public string Observation { get; set; }
        public string Sex { get; set; }

    }

Now I have the owner class derived from the Person class

 public class Propietario : Person
    {


    }

Am I working on MVC 5 and want to validate the properties (dataannotations) of the derived class as I do if these properties are not seen?

    
asked by moncada 13.08.2018 в 17:57
source

0 answers