ASP.net MVC dotn display a column

ASP.net MVC dotn display a column
Using LINQ to SQL class
[MetadataType(typeof(ProductMetadata))]
public pertial class Product
{

}
public class ProductMetadata
{

}
A. Add the following attribute to Product class
[DisplayColumn("DiscontinueDate","DiscontinueDate",false)
B. Add the following attribute to ProductMetadata class
[DisplayColumn("DiscontinueDate","DiscontinueDate",false)
C. Add the following code segment Product class

D. ProductMetaData class
[ScaffoldColumn(false)]
public object DiscontinueDate;

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.