this class comes from db
public class Company
{
public new Guid ID { get; set; }
public new String Name { get; set; }
}
I want to use class CompanyModel as model in mvc but it doesn't works
public class CompanyModel : Company
{
public new Guid ID { get { return base.ID; } set { base.ID = ID; } }
[Required]
[Display(Name = "Company Name")]
public new String Name { get { return base.Name; } set { base.Name = Name; } }
}
Is there ways to do something like that?