Click here to Skip to main content
15,920,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my model


C#
public class tbl_EmpRegistrationEntites
   {
       public global::System.Int32 EmpId
       {
           get;

           set;

       }
      [Required(ErrorMessage = "Please Enter Emailid")]
      //[DataType (DataType.EmailAddress)]
      [RegularExpression(@"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", ErrorMessage = "Enter valid email address")]
       public global::System.String EmailId
       {
           get;

           set;

       }
    [Required(ErrorMessage = "Please Enter Password")]
    [DataType(DataType.Password)]

    [StringLength(50,ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
       public global::System.String Password
       {
           get;

           set;

       }


      [Required(ErrorMessage = "Please Enter CompanyName")]
      [StringLength(400, ErrorMessage = "The Maximaum length is 400 character")]
       public global::System.String CompanyName
       {
           get;

           set;

       }
       [Required(ErrorMessage = "Please Enter CompanyType")]
       [StringLength(50, ErrorMessage = "The Maximaum length is 50 character")]
       public global::System.String CompanyType
       {
           get;

           set;

       }
       [Display(Name = "IndustryType")]
       [Required(ErrorMessage = "Please Select IndustryType")]
       public global::System.Int32 IndustryTypeId
       {
           get;

           set;

       }
        [Required(ErrorMessage = "Please Enter Address")]
        [StringLength(400, ErrorMessage = "The Maximaum length is 400 character")]
       public global::System.String Address
       {
           get;

           set;

       }
       [Display(Name = "Country")]
      [Required(ErrorMessage = "Please Select Country")]
       public global::System.Int32 CountId
       {
           get;

           set;

       }
       [Display(Name = "State")]
       [Required(ErrorMessage = "Please Select State")]
       public global::System.Int32 StateId
       {
           get;

           set;

       }
       [Display(Name = "City")]
     [Required(ErrorMessage = "Please Select City")]
       public global::System.Int32 CityId
       {
           get;

           set;

       }
    [Required(ErrorMessage = "Please Select Postcode")]
    //[RegularExpression(@"^(\d{6})$", ErrorMessage = "Only 6 Digit Pincode No.")]

       public global::System.String PinCode
       {
           get;

           set;

       }
    [Required(ErrorMessage = "Please Enter MobileNo")]
    //[RegularExpression(@"^(\d{10})$", ErrorMessage = "Only 10 Digit Mobile No.")]
       public global::System.String MobileNo
       {
           get;

           set;

       }

       public global::System.Boolean IsActive
       {
           get;

           set;

       }



   }
Posted
Comments
Sampath Lokuge 11-Apr-14 6:26am    
What's your Question ? :(

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900