我的任务是在models
一个视图中显示多个ViewModel
.我已经为我的要求创建了一个但我不符合我的要求.请看下面的代码并纠正我哪里出错????
public partial class StudentsDetail
{
public int StudentID { get; set; }
public int ParentID { get; set; }
public string StudentName { get; set; }
public string Gender { get; set; }
public string FatherName { get; set; }
public string MotherName { get; set; }
public Nullable<System.DateTime> DateOfBirth { get; set; }
public virtual ParentsDetail ParentsDetail { get; set; }
public virtual SchoolDetail SchoolDetail { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
//模型2
public partial class …
Run Code Online (Sandbox Code Playgroud)