I can't get the Data Annotations to work RRS feed

  • Question

  • User4068249 posted

    I'm using VS2010 and EF4.

    I added partial classes to go along with my data entities and I added Data Annotations to the column properties in order to display user-friendly descriptions for the column names on the List, Edit and Insert forms. I have not made any changes to any of the templates. The Data Annotations do not display on any of the forms. 

    Shouldn't the Data Annotations  display by default? If not , what do I have to do to display user-friendly column descriptions?

    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;

    namespace POSSetupDD
        public partial class PSDiscount
            public abstract class Metadata
                [Display(Name = "Description")]
                public object DiscountDescription { get; set; }




    Monday, September 9, 2013 12:16 PM


All replies