How can I add annotations to the partial class.
In Partial Class:
//[MetadataType(typeof(Table.Invoice_Details))]
    [MetadataTypeAttribute(typeof(Table.Invoice_Details))]
    public partial class Invoice_Details
    {
        [Display(Name = "Quantity")]
        public int Quantity { get; set; }
    }
In EntityFrameWork
    public partial class Invoice_Details
    {
        public int Quantity { get; set; }
    }
I tried in more than one way, but in the end I get a failure message:
Error CS0102 The type 'Invoice_Details' already contains a definition for 'Quantity'
 
    