﻿using System.ComponentModel.DataAnnotations;

namespace DataAccess.Model
{
    [MetadataType(typeof(NewsletterSubscription_MD))]
    public partial class NewsletterSubscription { }

    public partial class NewsletterSubscription_MD
    {
        public long NewsletterID { get; set; }

        [Required(ErrorMessage = "El {0} es requerido")]
        [Display(Name = "Email")]
        public string EmailAddress { get; set; }

        [Required(ErrorMessage = "La {0} es requerida")]
        [Display(Name = "Fecha")]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        [DataType(DataType.Date)]
        public System.DateTime Date { get; set; }

    }
}
