Title: Loading MetaData from Partial Class in Aspnet                                 If you need copy same format use firefox or chrome or safari but iexplorer not work


Preview of Code
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
 
namespace testApp.Models
{
    [MetadataType(typeof(Province.MyMetadataProvince))]
    public partial class Province
    {
        sealed class MyMetadataProvince
        {
            public int ID { get; set; }
            [Display(Name = "اسم محافظه")]
            [Required]
            public string ProvinceName { get; set; }
            public int ProvinceManagerID { get; set; }
            public string ProvinceCoordX { get; set; }
            public string ProvinceCoordY { get; set; }
            public string ProvinceTel { get; set; }
            public string ProvinceFax { get; set; }
        }
    }
    [MetadataType(typeof(EMP.MyMetadataEMP))]
    public partial class EMP
    {
        sealed class MyMetadataEMP
        {
            public int ID { get; set; }
            [Display(Name = "اسم كامل")]
            [Required]
            public string FullName { get; set; }
            public string NationalNo { get; set; }
            public string Position { get; set; }
            public string MobileNo { get; set; }
            public Nullable<int> MarkazID { get; set; }
            public int ProvinceID { get; set; }
            public string Remark { get; set; }
        }
    }
}