我正在开发一个 MVC 应用程序,我在开发它时使用了 EF 4.0。我已经从模型中创建了类。现在,我想为 MVC 制作的每个类添加更多类。
前任。在下面的代码中,我得到了类位置。现在,我想再创建一个类(部分类)如何覆盖部分类中的属性?
怎么做 ?
namespace Entities
{
public partial class Location
{
public int Id { get; set; }
public string Name { get; set; }
public string Remark { get; set; }
public string State { get; set; }
public string Region { get; set; }
public string PinCode { get; set; }
public virtual ICollection<Comment> Comments { get; set; }
}
}