using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using ViewResources = SampleScripts.App_GlobalResources;

namespace SampleScripts.Models
{
    public partial class CustomerAddress_Validation
    {

       

        [Required(ErrorMessageResourceType = typeof(ViewResources.ModelValidationMessage),
                ErrorMessageResourceName = "CityRqdMsg")]
        [StringLength(50, ErrorMessageResourceType = typeof(ViewResources.ModelValidationMessage),
                  ErrorMessageResourceName = "CityLengthMsg")]
        [RegularExpression(pattern: "^[^0-9!@#$%^&*-]+$", ErrorMessageResourceType = typeof(ViewResources.ModelValidationMessage),
                 ErrorMessageResourceName = "CityRegexFail")]
        public string City { get; set; }

        public string CountryCode { get; set; }

        [Required(ErrorMessageResourceType = typeof(ViewResources.ModelValidationMessage),
                  ErrorMessageResourceName = "NameRqdMsg")]
        [StringLength(50, ErrorMessageResourceType = typeof(ViewResources.ModelValidationMessage),
                  ErrorMessageResourceName = "NameLengthMsg")]
        [RegularExpression(pattern: "^[^0-9!@#$%^&*-]+$", ErrorMessageResourceType = typeof(ViewResources.ModelValidationMessage),
                 ErrorMessageResourceName = "NameRegexFail")]
        public string Name { get; set; }

        public string StateProvinceCode { get; set; }
    }
}