I tried to create a new class base on a class, and I want to override a property in the base class for remove [Required]. But instead of overriding, it created a new property with the same name. So what wrong, and how to fix it.
namespace admin.models
{
public class BaseClass
{
[Required]
public string id { get; set; }
[Required]
public string name { get; set; }
}
public class NewClass : BaseClass
{
public new string name { get; set; }
}
}